-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openlineage, snowflake: add OpenLineage support for Snowflake #31696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation changes for the operator should be added for open lineage
authority = f"{parsed.hostname}:{parsed.port}" | ||
return authority | ||
|
||
def get_default_schema(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have we tested this?
""" | ||
return self.__schema or "public" | ||
|
||
def get_database_specific_lineage(self, task_instance): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't there specific lineage in case of snowflake - eg. query run time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I'm trying to reflect what's currently sent from openlineage-airflow
package.
I might add some more information but I'd really appreciate what would be useful and available to retrieve.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the other hand - https://docs.snowflake.com/en/sql-reference/account-usage/query_history#usage-notes: latency for QUERY_HISTORY
is up to 45 minutes so it looks like it's not sustainable to always get_ query run time
edb89d4
to
3c4844f
Compare
One failing test looking rather flaky. |
Signed-off-by: Jakub Dardzinski <[email protected]>
Signed-off-by: Jakub Dardzinski <[email protected]>
3c4844f
to
dae1ba3
Compare
This PR adds OpenLineage support for SnowflakeOperator.
depends on: #31398