Repository navigation
Update Data Quality’s table total aggregation to use value_count on - #37507
ShaileshParmar11 merged 1 commit into
Conversation
taskr run 0181. The scale test now counts the same `deleted:false` scope on both sides, and the planned Jest, ESLint, spotless and compile checks pass. The case-only integration test still needs a live run.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Replacing cardinality with value_count changes coverage denominators; missing FQN values in indexed tables could undercount totals and inflate reported coverage. Switches the Data Quality table total aggregation from VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
276452a
into
open-metadata:main
…ix DQ, search index and incident-time fixtures (#37695) * test(playwright): refresh stale 2.1 visual baselines and fix the data quality and search index scenes The visual lane on 2.1 still failed 214 tests after #37656. 199 of the 200 mismatched baselines date from the original capture in #36640 and never ran in the run #37656 refreshed from, because 6 of 7 shards stopped at maxFailures. Each is replaced with the first-attempt actual from 2.1 run 43212731841. - visualData: the batch DQ fixture also answers value_count. #37507 switched the table total to value_count, the fixture returned no row, and DataAssetsCoveragePieChartWidget threw reading totalData[0], raising an error toast on the data quality page and its interaction scenes. - scenarios: the search index settings tab waits for its empty-state placeholder. #37120 removed the panel title the scene waited for; the fixture index has no settings. * test(playwright): pin the incident check time in the visual fixture The incident timestamp equalled FIXED_DATE while the browser clock keeps running, so the asset health widget rendered 'Last check N secs ago' with N depending on scene duration. It is now one hour earlier. * test(playwright): refresh the 2.1 baselines the fixture fixes changed Run 43264131527 renders the data quality and data observability scenes with the value_count fixture fix, the table manage menu, and an advanced-search nested-group frame that the previous run never reached. Each actual matched its retry. * test(playwright): refresh the 2.1 shard 02 baselines and nested group frames Run 43297316037 is the first 2.1 run where shard 02 ran its tests: dark announcements, bots, incident manager and advanced-search frames. Each actual matched its retry. The dark nested group-2 card is identical on main, where it was captured from run 43263784280; the earlier frames of that scene match pixel for pixel. * test(playwright): refresh the 2.1 dark nested-group footer frame The last advanced-search nested-group frame that earlier 2.1 runs never reached (run 43307968814). The actual matched its retry.
… fixes to 2.0 (#37913) * Update Data Quality’s table total aggregation to use `value_count` on `f (#37507) taskr run 0181. The scale test now counts the same `deleted:false` scope on both sides, and the planned Jest, ESLint, spotless and compile checks pass. The case-only integration test still needs a live run. (cherry picked from commit 276452a) * Fix Data Quality table total integration tests (#37698) * Fix Data Quality table total integration tests * Remove unit tests for Data Quality integration test helper (cherry picked from commit b264507) * Fix ODCS regex rules with unsupported failure thresholds
Summary
Changed the Data Quality table total aggregation to use
value_countonfullyQualifiedName, so Summary and Test Cases use the exact table-document count as their coverage denominator; the covered-entity aggregation remains unchanged. Added UI and integration regression coverage for case-only FQN differences and catalogs with more than 3,000 tables. Jest, ESLint, Spotless, and compile checks pass; reviewers should look first at the case-only integration test, which still needs a live run.Implementer's note: The scale test now counts the same
deleted:falsescope on both sides, and the planned Jest, ESLint, spotless and compile checks pass. The case-only integration test still needs a live run.Plan
rest/dataQualityDashboardAPI.ts,fetchTotalEntityCount(line ~73): change onlyaggType=cardinalitytoaggType=value_count. The result isbucketName=count:aggType=value_count:field=fullyQualifiedName. LeavebucketName,field,index: 'table', thebuildDataQualityTableFiltersmust-filter anddomainas they are. Do not touchfetchEntityCoveredWithDQ(aggType=cardinalityonoriginEntityFQN). No change to the widget (DataAssetsCoveragePieChartWidget.component.tsx) orDataQualityProvider.tsx. Both readdata[0].fullyQualifiedNameviaparseInt, and the backend parser (SearchIndexUtils.parseAggregationResults) is generic over the{value}aggregation JSON, so the response shape is unchanged.rest/dataQualityDashboardAPI.test.ts: update the sixfetchTotalEntityCountexpectations (lines ~94, 129, 166, 203, 259, 275) toaggType=value_count. Add an explicit assertion thatfetchEntityCoveredWithDQstill sendsaggType=cardinality:field=originEntityFQN(there may already be one; check and add if missing). That guards the scope constraint.DataAssetsCoveragePieChartWidget.test.tsx: add a test wherefetchTotalEntityCountresolves{ data: [{ fullyQualifiedName: '10233' }] }andfetchEntityCoveredWithDQresolves a covered count (e.g.'404'). Assert thatCustomPieChartreceivescovered=404,notCovered=9829and total 10233. This covers the case-colliding and >3,000 denominator end to end through the widget. Follow the existing mock andrenderWithQueryClientpattern at ~L205-257.DataQualityProvider.test.tsx: add a test, in the style of the existing deferred-promise tests (~L255-311), wherefetchTotalEntityCountresolves'10233'. Assert that the provider'stotalEntityCount(or the rendered summary value, via the existingSummaryComponenttest-ids) is 10233. Check whatSummaryComponentexposes and add a test-id only inside the test file.openmetadata-integration-tests/.../it/tests/search/TableTotalCountAggregationIT.java. This is the backend-level regression, since the Jest tests mock the REST layer and cannot prove the search engine behaviour. Use@ExtendWith(TestNamespaceExtension.class),TestNamespace,SdkClients.adminClient(), and Awaitility (noThread.sleep). Copy thegetDataQualityReporthelper pattern fromTestSuiteResourceIT(~L1305: GET/v1/dataQuality/testSuites/dataQualityReportwithq,index=table,aggregationQuery).Ordersandorders). Scope the query to that schema withtermondatabaseSchema.fullyQualifiedNameplusdeleted:false. Await indexing, then assert thatvalue_countonfullyQualifiedNamereturns 2 and thatcardinalityreturns 1. The cardinality assertion proves the collision mechanism and that the test fails without the fix. If table creation rejects case-only duplicates on this stack, fall back to asserting only thVerification
Review (luna): approve
Files
Closes #37506
Opened by taskr run 0181.