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 2021/07/16 07:52:26 UTC

[GitHub] [airflow] nathadfield edited a comment on issue #17032: Improved SQL rendering within BigQueryInsertJobOperator

nathadfield edited a comment on issue #17032:
URL: https://github.com/apache/airflow/issues/17032#issuecomment-881248692


   @kaxil It doesn't look like it.
   
   ```
   sql = '''
       INSERT INTO `target_project.target_dataset.target_table`
       (col1, col2, col3, col4)
       SELECT col1, col2, col3, col4
       FROM `source_project.source_dataset.source_table`
       '''
   
       test = BigQueryInsertJobOperator(
           task_id='test',
           gcp_conn_id='my_gcp_connection',
           configuration={"query": {"query": sql.strip(),
                                    "useLegacySql": False}
                          }
       )
   ```
   
   <img width="1668" alt="Screenshot 2021-07-16 at 08 48 04" src="https://user-images.githubusercontent.com/967119/125911821-e86cc2ca-8eb7-4aef-a4bb-4fbaf907de7f.png">
   
   The new lines characters before `INSERT` and after `table` have been removed but everything in between has not.


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