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

   ### Under which category would you file this issue?
   
   Airflow Core
   
   ### Apache Airflow version
   
   3.3.1
   
   ### What happened and how to reproduce it?
   
   Run any SQL task (we have `dbt` or/and plain Snowflake SQL for instance).
   Open `Rendered Templates`, copy any `SQL`, paste it anywhere in editor. 
   Almost every word is on new line including patentees, commas, dashes, etc.., 
breaking syntax completely.
   This issue didn't exist before `3.3.1`
   
   
   ### What you think should happen instead?
   
   Instead of having:
   ```sql
   select 
      count(*) as total_rows,
      nvl(count_if(m.a is null), 0) as nulls_count
   from table as m
   ```
   copy pasted output is:
   
   ```sql
   select
   
                   count
   (
   *
   )
    as total_rows,
                   nvl
   (
   count_if
   (
   m.a is null
   )
   , 
   0
   )
    as nulls_count
               from table as m
   ```
   
   
   ### Operating System
   
   _No response_
   
   ### Deployment
   
   Astronomer
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   Not Applicable
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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