Skip to content

Commit eb145e0

Browse files
committed
debug assert
1 parent 846ebf7 commit eb145e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/snowflake/connector/direct_file_operation_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,11 @@ def parse_file_operation(
7575
with self._connection.cursor() as cursor:
7676
# Send constructed SQL to server and get back parsing result.
7777
processed_params = cursor._connection._process_params_qmarks(params, cursor)
78-
return cursor._execute_helper(
78+
ret = cursor._execute_helper(
7979
sql, binding_params=processed_params, is_internal=True
8080
)
81+
assert ret.get("success", False), f"parse failed, ret is {ret}"
82+
return ret
8183

8284

8385
class StreamDownloader(StreamDownloaderBase):

0 commit comments

Comments
 (0)