houqp opened a new pull request #13278:
URL: https://github.com/apache/airflow/pull/13278


   By default sqlalchemy pass query params as is to db dialect drivers for
   query execution. This causes inconsistent behavior of query param
   evaluation between different db drivers. For example, MySQLdb will
   convert `DagRunType.SCHEDULED` to string `'DagRunType.SCHEDULED'`
   instead of string `'scheduled'`.
   
   To keep the behavior consistent across DB dialects, this patch
   introduces a new enum aware sqlalchemy type based of
   sqlalchemy.types.String to do the query param conversion within
   sqlalchemy's ORM layer before passing the value down to individual DB
   driver.
   
   see https://github.com/apache/airflow/pull/11621 for relevant
   discussions.
   


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