Area: Product
Sub-Area: Query Features
Applies to: Cloud
Issue
The Users filter on the Queries tab of a dataset is empty or doesn't list the users you expect. You can't analyze query patterns by individual data consumer.
You Might Be Asking
- Is the Users filter turned on by a feature setting?
- Which Snowflake ingestion settings produce query data?
- Do
include_usage_statsandinclude_operational_statsaffect the Queries tab?
Cause
The Queries tab Users filter is a DataHub Cloud feature. If it's empty, check that your Snowflake source produces query entities and query usage statistics.
Two groups of Snowflake settings are easy to mix up:
-
include_usage_stats(defaulttrue) populates Snowflake usage statistics.include_operational_stats(defaulttrue) controls operational stats. Neither generates query entities or query popularity statistics. -
use_queries_v2(uses the new queries extractor),include_queries(generates query entities associated with lineage edges) andinclude_query_usage_statistics(generates query popularity statistics) all default totrue. These produce the query data.
Solution
- Open the dataset and go to the Queries tab. Confirm you are on DataHub Cloud, because the Users filter is a Cloud feature.
- In your Snowflake recipe, check that the query settings haven't been turned off. Remove any
falseoverrides, or set them totrue:
source:
type: snowflake
config:
use_queries_v2: true
include_queries: true
include_query_usage_statistics: true
- Run the ingestion again and check that it finishes without errors.
- If the query settings are on and the ingestion succeeds but the filter is still empty, contact DataHub Support. Server-side jobs behind the filter are managed by DataHub Support on Cloud. Include the dataset URN and the time you ran the ingestion.
- If users show up with an unexpected name or no email, set
email_domainin the Snowflake config. DataHub uses it to display users when it can't infer the email.