hussein-awala opened a new pull request, #30300:
URL: https://github.com/apache/airflow/pull/30300

   closes: #30287
   
   ---
   This PR fixes the Redshift unload query when the select query contains 
quotes, by replacing `'` by `$$`. There is an alternative solution described in 
Redshift unload 
[doc](https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.html), which is 
duplicating the single quotes:
   > If your query contains quotation marks (for example to enclose literal 
values), put the literal between two sets of single quotation marks—you must 
also enclose the query between single quotation marks:
   ('select * from venue where venuestate=''NV''')
   
   But I'm using `$$` in my queries and it works fine


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