Area: Product Issues
Sub-Area: Analytics Dashboard
Applies to: OSS + Cloud
Issue
The numbers in the Analytics dashboard charts can differ from the numbers you see in search. The "Assets By Platform" bar for a platform can be higher than the result count of a search for that platform.
You Might Be Asking
- Why does the "Assets By Platform" chart show different numbers than search results?
- Does the chart count query entities?
- How do I run a field search such as a platform search correctly?
Cause
The chart counts every entity type. In DataHub Cloud v2.4.4, "Assets By Platform" counts every non-deleted entity of any type that carries the platform. That includes datasets, containers, dashboards, charts and data jobs. It counts across all entity search indexes. It excludes query entities and internal bridge documents. A search for one platform that is limited to one entity type, for example only Datasets, can show fewer results than the chart bar for that platform.
Older releases counted query entities. Before DataHub Cloud v0.3.16.5, the chart also counted query entities. Open-source DataHub v1.8.0 includes the fix for the analytics query-entity count. If you run an earlier release, upgrade to the latest release.
Search syntax. The search docs write field queries with the /q prefix, for example /q name: *mask*. The search backend runs a full-text query that doesn't start with the structured-query prefix as a simple query plus prefix and exact-match clauses. It doesn't run it as a field query. A search such as platform:snowflake typed without the prefix can therefore return different results than you expect.
Solution
- Compare like with like. The chart counts all entity types for a platform, so don't compare it with a search limited to one type.
- Start any field query with
/q. See Search syntax. - Upgrade to the latest release. On open-source DataHub, v1.8.0 or later has the query-entity fix.
- On DataHub Cloud, if the numbers still don't match, contact DataHub Support with the chart name, the platform, and the counts you see in the chart and in search.