square-hair-99480
07/25/2022, 9:49 AMaccess_history
but when I check this view in my Snowflake enterprise account it is empty and hence I have no lineage appearing in Datahub. Anyone has faced something similar?careful-pilot-86309
07/25/2022, 10:04 AMsquare-hair-99480
07/25/2022, 10:30 AMsnowflake
and the other the snowflake-usage
. I made sure my Snowflake datahub user was granted access to the snowflake database (followed this https://datahubproject.io/docs/generated/ingestion/sources/snowflake/#prerequisites) where the usage information should be available.
The thing is that when I check select * from snowflake.account_usage.access_history
in my Snowflake account the view is empty and I do not understand why. I see that the lineage for Snowflake is based on this view (https://github.com/datahub-project/datahub/blob/master/metadata-ingestion/src/datahub/ingestion/source/sql/snowflake.py#L476) so I was wondering if someone else has faced a similar issue.
The yaml files are:
source:
type: snowflake
config:
account_id: <...>
warehouse: DATA_ENG
role: datahub
ignore_start_time_lineage: true
include_table_lineage: true
include_view_lineage: true
check_role_grants: false
profiling:
enabled: true
stateful_ingestion:
enabled: false
username: '${SNOWFLAKE_USER}'
password: '${SNOWFLAKE_PASS}'
schema_pattern:
deny:
- 'information_schema.*'
database_pattern:
allow:
- 'dwh_ch.*'
and
source:
type: snowflake-usage
config:
account_id: <...>
warehouse: DATA_ENG
role: datahub
include_table_lineage: true
include_view_lineage: true
check_role_grants: true
stateful_ingestion:
enabled: false
username: '${SNOWFLAKE_USER}'
password: '${SNOWFLAKE_PASS}'
schema_pattern:
deny:
- 'information_schema.*'
database_pattern:
allow:
- 'dwh_ch.*'
careful-pilot-86309
07/25/2022, 10:40 AMhundreds-photographer-13496
07/25/2022, 10:55 AMsquare-hair-99480
07/25/2022, 11:05 AM