-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(ingestion/snowflake):adds streams as a new dataset with lineage and properties. #12318
base: master
Are you sure you want to change the base?
feat(ingestion/snowflake):adds streams as a new dataset with lineage and properties. #12318
Conversation
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_queries.py
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_query.py
Outdated
Show resolved
Hide resolved
c9e611d
to
457f96e
Compare
metadata-ingestion/src/datahub/ingestion/source/sql/sql_config.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_v2.py
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_schema_gen.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_v2.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_query.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_schema_gen.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_v2.py
Outdated
Show resolved
Hide resolved
- moved stream lineage from snowflake_v2.py & snowflake_lineage_v2.py to snowflake_schema_gen.py - updated snowflake_schema_gen.py to use snowflake_utils.py
- changed from clone table logic to manually mapping columns since metadata columns were attempting to be mapped from the stream source
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.
Mostly looks good.
Only one request to use add_known_lineage_mapping
as opposed to add_known_query_lineage
.
… into snowflake-streams-v2 rebase
metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_schema_gen.py
Outdated
Show resolved
Hide resolved
"Failed to get columns for stream:", stream.name, exc=e | ||
) | ||
|
||
yield from self.gen_dataset_workunits(stream, schema_name, db_name) |
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.
Did you forget to remove this outer yield , as its moved inside ?
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.
An additional yield was added to populate the columns so column lineage would populate correctly.
…flake_schema_gen.py Co-authored-by: Mayuri Nehate <[email protected]>
Checklist
Properly picks up: