diff options
author | Pat Maddox <pat@patmaddox.com> | 2023-12-07 08:18:08 +0100 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-12-07 14:52:34 +0100 |
commit | 3906507e1a3a0ecdba9cf829728f5e85f827e117 (patch) | |
tree | c77570aadc5741e6e5b0afb4dbd2b59f2c2b21bf /databases/py-snowflake-connector-python/files | |
parent | devel/py-mashumaro: Update version 3.9=>3.11 (diff) |
databases/py-snowflake-connector-python: Update version 3.2.1=>3.5.0
Changelog:
https://github.com/snowflakedb/snowflake-connector-python/releases/tag/v3.5.0
PR: 275587
Approved by: submitter is maintainer
Diffstat (limited to 'databases/py-snowflake-connector-python/files')
2 files changed, 40 insertions, 0 deletions
diff --git a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c new file mode 100644 index 000000000000..46bb0a440466 --- /dev/null +++ b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.c @@ -0,0 +1,29 @@ +--- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c.orig 2023-11-30 19:17:00 UTC ++++ src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.c +@@ -21239,7 +21239,7 @@ static inline int ArrowIpcDecoderReadHeaderPrefix(stru + + if (header_body_size_bytes == 0) { + ArrowErrorSet(error, "End of Arrow stream"); +- return ENODATA; ++ return ENOATTR; + } + + return NANOARROW_OK; +@@ -22194,7 +22194,7 @@ static int ArrowIpcArrayStreamReaderNextHeader( + // is one of the valid outcomes) but we set the error anyway in case it gets + // propagated higher (e.g., if the stream is empty and there's no schema message) + ArrowErrorSet(&private_data->error, "No data available on stream"); +- return ENODATA; ++ return ENOATTR; + } else if (bytes_read != 8) { + ArrowErrorSet(&private_data->error, + "Expected at least 8 bytes in remainder of stream"); +@@ -22338,7 +22338,7 @@ static int ArrowIpcArrayStreamReaderGetNext(struct Arr + // Read + decode the next header + int result = ArrowIpcArrayStreamReaderNextHeader( + private_data, NANOARROW_IPC_MESSAGE_TYPE_RECORD_BATCH); +- if (result == ENODATA) { ++ if (result == ENOATTR) { + // Stream is finished either because there is no input or because + // end of stream bytes were read. + out->release = NULL; diff --git a/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h new file mode 100644 index 000000000000..cf93c5d9c978 --- /dev/null +++ b/databases/py-snowflake-connector-python/files/patch-src_snowflake_connector_nanoarrow__cpp_ArrowIterator_nanoarrow__ipc.h @@ -0,0 +1,11 @@ +--- src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.h.orig 2023-11-30 19:16:47 UTC ++++ src/snowflake/connector/nanoarrow_cpp/ArrowIterator/nanoarrow_ipc.h +@@ -193,7 +193,7 @@ void ArrowIpcDecoderReset(struct ArrowIpcDecoder* deco + /// The first 8 bytes of an Arrow IPC message are 0xFFFFFF followed by the size + /// of the header as a little-endian 32-bit integer. ArrowIpcDecoderPeekHeader() reads + /// these bytes and returns ESPIPE if there are not enough remaining bytes in data to read +-/// the entire header message, EINVAL if the first 8 bytes are not valid, ENODATA if the ++/// the entire header message, EINVAL if the first 8 bytes are not valid, ENOATTR if the + /// Arrow end-of-stream indicator has been reached, or NANOARROW_OK otherwise. + ArrowErrorCode ArrowIpcDecoderPeekHeader(struct ArrowIpcDecoder* decoder, + struct ArrowBufferView data, |