pkit commented on issue #2084:
URL: https://github.com/apache/arrow-adbc/issues/2084#issuecomment-2297800058
Nice!
Interestingly though, the following simple code fails:
```python
def main():
conn_read = connect(f"{user}:{password}@{account}/{database}",
db_kwargs={
"adbc.snowflake.sql.schema": "PUBLIC",
})
conn_write = connect(f"{user}:{password}@{account}/{database}",
db_kwargs={
"adbc.snowflake.sql.schema": "PUBLIC",
})
with conn_read.cursor() as cursor_read:
with conn_write.cursor() as cursor_write:
cursor_read.adbc_statement.set_options(**{"adbc.snowflake.rpc.prefetch_concurrency":
2, "adbc.rpc.result_queue_size": 10})
cursor_read.execute("SELECT * FROM T1")
for batch in cursor_read.fetch_record_batch():
print(batch)
cursor_write.adbc_ingest("T2", batch, mode="append")
```
The failure is:
```
ERRO[0005]connection.go:275 gosnowflake.(*snowflakeConn).Close context
canceled LOG_SESSION_ID=1685662994679674
```
And that's it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]