From 779d7c72e774d391e3c8f3d8b66beaf05bc72278 Mon Sep 17 00:00:00 2001 From: Jesse Whitehouse Date: Tue, 21 Mar 2023 14:00:31 -0500 Subject: [PATCH] Update example in docstring so query output is valid Spark SQL Signed-off-by: Jesse Whitehouse --- src/databricks/sql/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/databricks/sql/client.py b/src/databricks/sql/client.py index a2b61ce5..722ed778 100644 --- a/src/databricks/sql/client.py +++ b/src/databricks/sql/client.py @@ -457,9 +457,9 @@ def execute( Execute a query and wait for execution to complete. Parameters should be given in extended param format style: %(...). For example: - operation = "SELECT * FROM %(table_name)s" - parameters = {"table_name": "my_table_name"} - Will result in the query "SELECT * FROM 'my_table_name' being sent to the server + operation = "SELECT * FROM table WHERE field = %(some_value)s" + parameters = {"some_value": "foo"} + Will result in the query "SELECT * FROM table WHERE field = 'foo' being sent to the server :returns self """ if parameters is not None: