davlee1972 commented on issue #2094:
URL: https://github.com/apache/arrow-adbc/issues/2094#issuecomment-2310720418

   I ended up fixing this by adding a COPY INTO call after calling adbc_ingest()
   
   ```
       with 
snowflake_gateway.source.dbapi.connect(**snowflake_gateway.source.db_args) as 
conn:
           with conn.cursor() as cur:
               cur.execute("select '" + file + "'")
               cur.adbc_ingest(snowflake_gateway.source.table_name, 
dataset.to_table(columns=computed_columns), mode="append")
               ##################################################
               ## Added extra COPY INTO call followed by COMMIT
               ##################################################
               cur.execute("""COPY INTO IDENTIFIER('"RISK_CORE_HIST"') FROM 
@ADBC$BIND MATCH_BY_COLUMN_NAME = CASE_INSENSITIVE""")
               cur.execute("commit")
               cur.execute("select count(*) from " + 
snowflake_gateway.source.table_name)
               print(cur.fetchall())
   ```


-- 
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]

Reply via email to