shahkshitij15 opened a new issue #22129:
URL: https://github.com/apache/airflow/issues/22129


   ### Apache Airflow Provider(s)
   
   google
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Apache Airflow version
   
   2.2.4 (latest released)
   
   ### Operating System
   
   macOS Monterey
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   Autodetect parameter is missing in the create_external_table function in 
BQCreateExternalTableOperator because of which one cannot create external 
tables if schema files are missing
   See function on line 1140 in this 
[file](https://github.com/apache/airflow/blob/main/airflow/providers/google/cloud/operators/bigquery.py)
   
   ### What you expected to happen
   
   If autodetect argument is passed to the create_external_table function then 
one can create external tables without mentioning the schema for a CSV file 
leveraging the automatic detection functionality provided by the big query 
   
   ### How to reproduce
   
   Simply call BigQueryCreateExternalTableOperator in the dag without 
mentioning schema_fields or schema_object
   
   ### 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