JDarDagran commented on code in PR #31398:
URL: https://github.com/apache/airflow/pull/31398#discussion_r1219699476


##########
airflow/providers/common/sql/hooks/sql.py:
##########
@@ -515,3 +516,40 @@ def test_connection(self):
             message = str(e)
 
         return status, message
+
+    def get_database_info(self, connection):
+        from airflow.providers.openlineage.sqlparser import DatabaseInfo
+
+        return DatabaseInfo(
+            scheme=self.get_database_dialect(connection), 
authority=self._get_authority(connection)
+        )
+
+    def get_database_dialect(self, connection):

Review Comment:
   I'd assume it might be different in any provider for some reason. Dialect is 
specific to OpenLineage SQLParser and accepts only a limited number of 
dialects. A vast of `conn_type`s should then return `generic` or `postgres` - 
e.g. `redshift` one.



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