-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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(ingest/snowflake): allow iceberg tables in lineage and access metadata #10961
feat(ingest/snowflake): allow iceberg tables in lineage and access metadata #10961
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis update introduces the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SnowflakeObjectDomain
participant SnowflakeQuery
participant SQLExecution
User->>SnowflakeObjectDomain: Request Object Types
SnowflakeObjectDomain-->>User: Return Types (including ICEBERG_TABLE)
User->>SnowflakeQuery: Construct Query for ICEBERG_TABLE
SnowflakeQuery->>SQLExecution: Execute Query for ICEBERG_TABLE
SQLExecution-->>SnowflakeQuery: Return Results
SnowflakeQuery-->>User: Provide Results
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- metadata-ingestion/src/datahub/ingestion/source/snowflake/constants.py (1 hunks)
- metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_query.py (1 hunks)
- metadata-ingestion/tests/integration/snowflake/common.py (1 hunks)
Additional comments not posted (3)
metadata-ingestion/src/datahub/ingestion/source/snowflake/constants.py (1)
55-55
: Add ICEBERG_TABLE to SnowflakeObjectDomain EnumThe addition of
ICEBERG_TABLE
to theSnowflakeObjectDomain
enumeration is correct and consistent with the existing code. This change enhances the functionality by recognizing Iceberg tables.metadata-ingestion/tests/integration/snowflake/common.py (1)
159-159
: Include Iceberg table in SQL queryThe modification to include
'Iceberg table'
in the filtering criteria of the SQL query is correct and aligns with the intended functionality of recognizing Iceberg tables in the lineage and access metadata.metadata-ingestion/src/datahub/ingestion/source/snowflake/snowflake_query.py (1)
38-38
: Add ICEBERG_TABLE to SnowflakeQuery DomainsThe addition of
ICEBERG_TABLE
to the set of domains in theSnowflakeQuery
class is correct and consistent with the existing code. This change enhances the functionality by recognizing Iceberg tables.
@mayurinehate any feedback on this? |
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.
LGTM
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.
Sorry about the delay here - we needed to check if there were any side effects that this would have, but I think we're all good
Checklist
Despite not having in their documentation, Iceberg table is a valid object domain in Snowflake access history. We want to capture this for lineage purposes so any table downstream of an Iceberg table is included in lineage.
Summary by CodeRabbit
New Features
Bug Fixes