Skip to content
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

Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class SnowflakeObjectDomain(str, Enum):
DATABASE = "database"
SCHEMA = "schema"
COLUMN = "column"
ICEBERG_TABLE = "iceberg table"


GENERIC_PERMISSION_ERROR_KEY = "permission-error"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class SnowflakeQuery:
SnowflakeObjectDomain.EXTERNAL_TABLE.capitalize(),
SnowflakeObjectDomain.VIEW.capitalize(),
SnowflakeObjectDomain.MATERIALIZED_VIEW.capitalize(),
SnowflakeObjectDomain.ICEBERG_TABLE.capitalize(),
}

ACCESS_HISTORY_TABLE_VIEW_DOMAINS_FILTER = "({})".format(
Expand Down
2 changes: 1 addition & 1 deletion metadata-ingestion/tests/integration/snowflake/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
on basic_usage_counts.bucket_start_time = user_usage_counts.bucket_start_time
and basic_usage_counts.object_name = user_usage_counts.object_name
where
basic_usage_counts.object_domain in ('Table','External table','View','Materialized view')
basic_usage_counts.object_domain in ('Table','External table','View','Materialized view','Iceberg table')
and basic_usage_counts.object_name is not null
group by
basic_usage_counts.object_name,
Expand Down
Loading