File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -929,12 +929,15 @@ def execute(
929929
930930 if _do_reset :
931931 self .reset ()
932- command = command .strip (" \t \n \r " ) if command else None
932+ command = command .strip (" \t \n \r " ) if command else ""
933933 if not command :
934- logger .warning ("execute: no query is given to execute" )
935- return None
936- logger .debug ("query: [%s]" , self ._format_query_for_log (command ))
934+ if _dataframe_ast :
935+ logger .debug ("dataframe ast: [%s]" , _dataframe_ast )
936+ else :
937+ logger .warning ("execute: no query is given to execute" )
938+ return None
937939
940+ logger .debug ("query: [%s]" , self ._format_query_for_log (command ))
938941 _statement_params = _statement_params or dict ()
939942 # If we need to add another parameter, please consider introducing a dict for all extra params
940943 # See discussion in https://github.com/snowflakedb/snowflake-connector-python/pull/1524#discussion_r1174061775
You can’t perform that action at this time.
0 commit comments