Area: Ingestion Issues
Sub-Area: Snowflake Ingestion / Metrics Entity Configuration
Applies to: Cloud
Issue
You want Snowflake Semantic View metrics to show up as Metric entities in DataHub Cloud, but no metrics appear. One of these is true for your Snowflake ingestion source:
- The source's CLI Version is set to an older 1.6.0.x release so that the built-in classifier keeps working.
- You moved the source to CLI 1.7.0 or later, and the run now fails because the recipe still has
classification.enabled: true. - The run succeeds, but semantic views appear only as datasets with the subtype
Semantic View, or not at all.
Error Messages
When the recipe has classification.enabled: true and no custom classifier, CLI 1.7.0 and later stop the run with this error:
The built-in 'datahub' column-level classifier has been removed from acryl-datahub because it depended on the unmaintained `acryl-datahub-classify` package (which pinned numpy<2). To keep using it, install the last release that supports it: `pip install 'acryl-datahub==1.6.0.5'`. Otherwise, register your own classifier implementation or disable classification (`classification.enabled: false`).
You Might Be Asking
- Why are my Snowflake Semantic View metrics not appearing in DataHub?
- Why does my Snowflake ingestion fail with a classifier error after I upgraded the CLI?
- Can I keep the built-in classifier and also ingest Metrics?
- How do I turn on the Metrics feature in DataHub Cloud?
Cause
The built-in datahub column classifier was removed from acryl-datahub. acryl-datahub 1.6.0.9 is the last release that includes it. 1.6.0.10 and all 1.7.0 releases do not. The classification framework is still there, but no classifier is registered by default. So a recipe with classification.enabled: true and the default classifier list fails at startup on these versions.
To keep classification working, some Snowflake sources were pinned by hand to an older CLI in the source's CLI Version field. The classification feature does not set this pin. Nothing overrides the CLI Version field; the run uses the version you set there.
The Snowflake connector option that emits Metric and Semantic Model entities, semantic_views.emit_semantic_model_entities, is in CLI 1.7.0 and later. CLI 1.7.0 and later do not include the built-in classifier. So to get Metrics, you must stop using the built-in classifier.
Two more settings decide whether metrics appear:
- Semantic view ingestion is off by default.
semantic_views.enableddefaults tofalse. - Metric and Semantic Model entities need DataHub Cloud 2.1.0 or later. The Metrics feature is on by default from Cloud 2.3.0. When
emit_semantic_model_entitiesis not set, the connector emits Metric entities on Cloud 2.1.0 or later unless the Metrics feature is turned off. Otherwise it ingests each semantic view as a dataset with the subtypeSemantic View.
Solution
-
Remove the built-in classifier from the recipe. Open your Snowflake ingestion source and delete the
classificationblock, or setclassification.enabled: false. If you need classification, register your own classifier as described in Bring your own classifier. -
Turn on semantic view ingestion. Add a
semantic_viewsblock to the source config. Leaveemit_semantic_model_entitiesunset, or set it totrue. Do not set it tofalse, because that always ingests semantic views as datasets. See From Snowflake Semantic Views.source: type: snowflake config: account_id: "<your-snowflake-account>" username: "<your-username>" password: "${SNOWFLAKE_PASSWORD}" role: "<your-role>" warehouse: "<your-warehouse>" semantic_views: enabled: true column_lineage: true # optional, default false -
Set the CLI version. In the source, open Advanced Settings and set CLI Version to the latest acryl-datahub release (1.7.0 or later). If the field holds a 1.6.0.x pin, replace it. See UI Ingestion.
-
Check that the Metrics feature is on. Look for Metrics in the left navigation. Cloud 2.3.0 and later turn it on by default. On Cloud 2.1.x or 2.2.x, or if you don't see Metrics in the navigation, contact DataHub Support to turn it on. Cloud versions before 2.1.0 do not support Metric entities. See Prerequisites.
-
Run the Snowflake ingestion again. When it finishes, open Metrics in the left navigation and check that your semantic view metrics are listed.
Semantic views that you ingested before as Semantic View datasets are not converted automatically. Contact DataHub Support to plan moving their owners, tags, terms and documentation to the new Semantic Model and Metric entities.
Related Documentation
- Metrics & Semantic Models
- Classification
- DataHub Cloud v2.1.0 Release Notes
- Snowflake Ingestion Source
- UI Ingestion
Tags: snowflake, metrics, semantic-models, semantic-views, ingestion, cli-version, classifier, datahub-cloud