You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/31 21:43:48 UTC

[GitHub] [airflow] patricker opened a new issue, #26095: Creative use of BigQuery Hook Leads Exception

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

   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   8.3.0
   
   ### Apache Airflow version
   
   2.3.4
   
   ### Operating System
   
   Debian
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   When executing a query through a BigQuery Hook Cursor that does not have a schema, an exception is thrown.
   
   ### What you think should happen instead
   
   If a cursor does not contain a schema, revert to a `self.description` of None, like before the update.
   
   ### How to reproduce
   
   Execute an `UPDATE` sql statement using a cursor.
   
   ```
   conn = bigquery_hook.get_conn()
   cursor = conn.cursor()
   cursor.execute(sql)
   ```
   
   ### Anything else
   
   I'll be the first to admit that my users are slightly abusing cursors in BigQuery by running all statement types through them, but BigQuery doesn't care and lets you.
   
   Ref: https://github.com/apache/airflow/issues/22328
   
   ### 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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #26095: Creative use of BigQuery Hook Leads to Exception

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #26095: Creative use of BigQuery Hook Leads to Exception
URL: https://github.com/apache/airflow/issues/26095


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org