Area: Observability Issues
Sub-Area: Data Profiling and Anomaly Detection
Applies to: OSS + Cloud
Issue
The Stats tab is greyed out on a dataset page. You can't see profiling data such as row counts, null counts and min/max values.
You Might Be Asking
- Why is my Stats tab greyed out and disabled?
- How do I enable data profiling for my datasets?
- What configuration do I need to see statistics in DataHub?
- Do I need Support to turn on Smart Assertions (Anomaly Detection)?
Cause
The Stats tab is always visible. DataHub enables it only when the dataset has at least one of these:
- a full table profile
- a partition profile
- usage statistics
- operations
Profiling is off by default (profiling.enabled is false), so a dataset that has no usage or operations data has no Stats tab until you turn profiling on and run ingestion.
Assertions and Smart Assertions settings do not affect the Stats tab.
Solution
-
Add a profiling block to your ingestion recipe. Put it under
source.config.Databricks needs a
methodand a SQL warehouse id.methodmust besqlalchemyoranalyze(analyzeworks on Delta tables only). The valuegefails validation. Setwarehouse_idunderprofiling, or at the top level of the source config. If you set both, they must match. Without it, validation fails withwarehouse_id must be set when profiling is enabled.profiling: enabled: true method: sqlalchemy # or analyze for Delta tables only warehouse_id: '<your-sql-warehouse-id>' -
For Snowflake and BigQuery, turn profiling on. You don't need
method. It is a removed field that DataHub ignores with a deprecation warning.# Snowflake profiling: enabled: true # BigQuery profiling: enabled: true profile_table_level_only: falseThe SQLAlchemy profiler is the only SQL profiler. See SQL Profiling.
-
Save the recipe and run ingestion again.
-
Check that the Stats tab is active on a profiled dataset.
If the Stats tab is still greyed out
-
Tables were skipped. The run report counts skipped tables:
profiling_skipped_table_profile_pattern,profiling_skipped_not_updated,profiling_skipped_size_limitandprofiling_skipped_row_limit. Setprofiling.report_dropped_profiles: trueto list the tables and columns that were not profiled. -
Size and row limits.
profiling.profile_table_size_limitis a size in GB (default 5).profiling.profile_table_row_limitis a row count (default 5000000). DataHub skips tables above either limit. It does not sample them. Set a limit tonullfor no limit. - Wrong recipe. Check that you edited the recipe for the source that owns the dataset.
-
Invalid keys. Source configs reject unknown keys, so a misspelled key under
source.configfails the run before it starts.
Limit which tables get profiled
For SQL sources, use the source-level profile_pattern under source.config, not under profiling. Only tables that table_pattern also allows are considered. Use single-quoted regexes in YAML.
source:
config:
profile_pattern:
allow:
- '<database>\.<schema>\..*'
On Databricks, use profiling.pattern. It matches catalog.schema.table.
See Databricks Source Configuration and Snowflake Source Configuration.
Smart Assertions (Anomaly Detection), DataHub Cloud only
Smart Assertions are now called Anomaly Detection. You don't need to contact DataHub Support to turn them on. You enable Anomaly Detection per assertion.
- General availability: Freshness and Volume assertions.
- Public Beta: Column Metric assertions and Custom SQL assertions.
- Not supported: Column Value and Schema assertions.
- A new Anomaly Detection assertion collects 14 days of history before it alerts.
- Backfill of assertion history is in Private Beta. Ask your DataHub Cloud representative for access.
See Anomaly Detection.