You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SNOW-199087: Implement multi-statement support for the Python connector. (#1281)
* SNOW-199087: Implement multi-statement support for the Python connector.
SNOW-676491: Executing multiple queries with no complications.
SNOW-676495: Execute multiple queries with parameter bindings.
* SNOW-676497: Added asynchronous execution support for multi-statements.
* SNOW-676496: Adding multi-statement support to executemany and addressing some comments.
* Fixing imports for olddriver test.
* Addressed comments, and improved multi-statement tests
* Adding telemetry, fixed tests, detect PUT/GET from server response.
* Old driver test import failure fix
* Add type hint for multi-statement query ID deque
* Add type hint to num_statements from kwargs
* Addressing more comments, bumping version for release
* Address comment in DESCRIPTION.md
Co-authored-by: Mark Keller <[email protected]>
Copy file name to clipboardExpand all lines: DESCRIPTION.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,22 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
8
8
9
9
# Release Notes
10
10
11
-
- v2.8.4(unreleased)
11
+
- v2.9.0(Unreleased)
12
+
12
13
- Fixed a bug where the permission of the file downloaded via GET command is changed
13
14
- Reworked authentication internals to allow users to plug custom key-pair authenticators
15
+
- Multi-statement query execution is now supported through `cursor.execute` and `cursor.executemany`
16
+
- The Snowflake parameter `MULTI_STATEMENT_COUNT` can be altered at the account, session, or statement level. An additional argument, `num_statements`, can be provided to `execute` to use this parameter at the statement level. It *must* be provided to `executemany` to submit a multi-statement query through the method. Note that bulk insert optimizations available through `executemany` are not available when submitting multi-statement queries.
17
+
- By default the parameter is 1, meaning only a single query can be submitted at a time
18
+
- Set to 0 to submit any number of statements in a multi-statement query
19
+
- Set to >1 to submit the specified exact number of statements in a multi-statement query
20
+
- Bindings are accepted in the same way for multi-statements as they are for single statement queries
21
+
- Asynchronous multi-statement query execution is supported. Users should still use `get_results_from_sfqid` to retrieve results
22
+
- To access the results of each query, users can call `SnowflakeCursor.nextset()` as specified in the DB 2.0 API (PEP-249), to iterate through each statements results
23
+
- The first statement's results are accessible immediately after calling `execute` (or `get_results_from_sfqid` if asynchronous) through the existing `fetch*()` methods
14
24
15
25
- v2.8.3(November 28,2022)
26
+
16
27
- Bumped cryptography dependency from <39.0.0 to <41.0.0
17
28
- Fixed a bug where expired OCSP response cache caused infinite recursion during cache loading
0 commit comments