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


   Looks like usage of triple quotes adds line breaks -- 
https://stackoverflow.com/questions/19756715/remove-n-from-triple-quoted-string-in-python
 explains it better.
   
   I think the DAG Author should handle this as for other instances a line 
break is on purpose and not just used for multi-line strings.
   
   For the feature rendering, Jarek proposed, let's try to gauge the benefits 
of that feature first. Because any changes in serialization will increase the 
size of the payload to push during parsing in the scheduler and for the 
webserver to pull. 
   
   
   This can get rid of newline chars if you don't need
   ```python
       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`
       '''
   ```
   
   
![image](https://user-images.githubusercontent.com/8811558/126231081-388cd81d-b9f9-4e6a-b552-5fd0d8b4404b.png)
   
   You can remove tabs and others, by using dedent.
   
   But Airflow shows what you pass, trying to guess what user is doing won't be 
accurate all the time in my opinion
   


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