Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd684bf8

Browse files
author
Jesse
authored
Update example in docstring so query output is valid Spark SQL (#95)
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parentd4d7cca commitd684bf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/databricks/sql/client.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,9 @@ def execute(
457457
Execute a query and wait for execution to complete.
458458
Parameters should be given in extended param format style: %(...)<s|d|f>.
459459
For example:
460-
operation = "SELECT * FROM%(table_name)s"
461-
parameters = {"table_name": "my_table_name"}
462-
Will result in the query "SELECT * FROM'my_table_name' being sent to the server
460+
operation = "SELECT * FROMtable WHERE field = %(some_value)s"
461+
parameters = {"some_value": "foo"}
462+
Will result in the query "SELECT * FROMtable WHERE field = 'foo' being sent to the server
463463
:returns self
464464
"""
465465
ifparametersisnotNone:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp