Repository navigation
Fix Data Quality table total integration tests (backport 2.1 #37698) - #37717
Conversation
* Fix Data Quality table total integration tests * Remove unit tests for Data Quality integration test helper (cherry picked from commit b264507)
❌ 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 🟢 Low riskThe changes only adjust integration-test aggregation parsing and schema scoping, leaving production behavior and public interfaces unchanged. Backports the Data Quality table total integration test fix from #37698 to the 2.1 branch, so 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 |
Backport of #37698 to the 2.1 release branch.
#37507 is on
2.1, but its test fix #37698 merged only tomain, so the 2.1 nightly Java search ITs fail onTableTotalCountAggregationIT.tableTotalCountsEveryDocumentWhenFqnsDifferOnlyByCase:DataQualityTableTotal.tableTotalrunsLong.parseLongon"0.0", throwsNumberFormatException, and the test times out after 60s. Failing run: https://github.com/open-metadata/openmetadata-nightly/actions/runs/43339655767Cherry-picked cleanly from main (
b264507022f, no conflicts, no 2.1-specific changes). Test-only: two files underopenmetadata-integration-tests. The only caller of the changedDataQualityTableTotal.scopedQuery(UUID)signature on2.1isTableTotalCountAggregationIT, which this PR updates.Verification on this branch: not built or run locally. The change is identical to #37698, which was verified on
mainwithTableTotalCountAggregationIT(PostgreSQL + OpenSearch). The next 2.1 nightly is the confirming run.The description of the original PR follows.
Describe your changes:
Fixes
TableTotalCountAggregationIT.tableTotalCountsEveryDocumentWhenFqnsDifferOnlyByCase, introduced in #37507.The shared integration-test helper now parses decimal-form aggregation counts such as
"0.0"and"2.0"withBigDecimal.longValueExact(). It also scopes the query by the schema UUID: the previous exact term query targeted a text-indexed FQN and returned zero even after the tables were indexed.Type of change:
High-level design:
Not applicable — small test-only fix across two files.
🤖 Generated with Claude Code