kaxil edited a comment on issue #10876:
URL: https://github.com/apache/airflow/issues/10876#issuecomment-703083956


   @wolfier If you change the DAG as follows, it will work:
   
   ```python
   from datetime import datetime
   from airflow.models import DAG
   from airflow.contrib.operators.bigquery_operator import BigQueryOperator
   
   
   dag = DAG(
       dag_id='my_dag',
       schedule_interval='@once',
       start_date=datetime(2020, 1, 1)
   )
   
   
   test = BigQueryOperator(
       sql="asdsa",    # Notice removal of list when just using a single query
       task_id='test2',
       dag=dag
   )
   ```
   
   i.e. if you are just passing a single query, just pass it as string instead 
of a list


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to