dstandish commented on code in PR #44743:
URL: https://github.com/apache/airflow/pull/44743#discussion_r1873984144
##########
providers/src/airflow/providers/amazon/aws/hooks/redshift_sql.py:
##########
@@ -265,6 +261,6 @@ def get_openlineage_database_dialect(self, connection:
Connection) -> str:
def get_openlineage_default_schema(self) -> str | None:
"""Return current schema. This is usually changed with ``SEARCH_PATH``
parameter."""
- if _IS_AIRFLOW_2_10_OR_HIGHER:
+ if AIRFLOW_BASE_VERSION >= "2.10.0":
return self.get_first("SELECT CURRENT_SCHEMA();")[0]
Review Comment:
just did this one as an example; it cannot be used until min airlfow version
is ... whenever this constant is introduced
--
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]