anamargaridarl opened a new issue, #29975:
URL: https://github.com/apache/airflow/issues/29975

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   Airflow version 2.4.0
   
   All the dags using SnowflakeHook started failing with the following error:
   
   ```
   [2023-03-08, 11:22:02 UTC] {taskinstance.py:1851} ERROR - Task failed with 
exception
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", 
line 175, in execute
       return_value = self.execute_callable()
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/operators/python.py", 
line 193, in execute_callable
       return self.python_callable(*self.op_args, **self.op_kwargs)
     File "/opt/airflow/xxx.py", line 37, in xxxx
       data_rows = dwh_hook.get_records(query)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/common/sql/hooks/sql.py",
 line 235, in get_records
       return self.run(sql=sql, parameters=parameters, 
handler=fetch_all_handler)
     File 
"/home/airflow/.local/lib/python3.8/site-packages/airflow/providers/snowflake/hooks/snowflake.py",
 line 341, in run
       query_id = cur.sfqid
   AttributeError: 'list' object has no attribute 'sfqid
   ```
   
   Could someone help me understand why this is happening? 
   Thank you
   
   
   ### What you think should happen instead
   
   The dag should run normally.
   
   ### How to reproduce
   
   Run the function get_records() with the SnowflakeHook
   
   ### Operating System
   
   linux debian
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-airbyte==2.1.1
   apache-airflow-providers-celery==3.1.0
   apache-airflow-providers-cncf-kubernetes==1.0.0
   apache-airflow-providers-common-sql==1.3.3
   apache-airflow-providers-ftp==3.3.1
   apache-airflow-providers-http==4.1.1
   apache-airflow-providers-imap==3.1.1
   apache-airflow-providers-opsgenie==4.0.0
   apache-airflow-providers-slack==5.1.0
   apache-airflow-providers-snowflake==3.1.0
   apache-airflow-providers-sqlite==3.3.1
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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