Skip to content

Fix Data Quality table total integration tests (backport 2.1 #37698) - #37717

Merged
shrabantipaul-collate merged 1 commit into
2.1from
backport/2.1/pr-37698
Nov 13, 2026
Merged

shrabantipaul-collate merged 1 commit into
2.1from
backport/2.1/pr-37698

Conversation

@shrabantipaul-collate

Copy link
Copy Markdown
Contributor

Backport of #37698 to the 2.1 release branch.

#37507 is on 2.1, but its test fix #37698 merged only to main, so the 2.1 nightly Java search ITs fail on TableTotalCountAggregationIT.tableTotalCountsEveryDocumentWhenFqnsDifferOnlyByCase: DataQualityTableTotal.tableTotal runs Long.parseLong on "0.0", throws NumberFormatException, and the test times out after 60s. Failing run: https://github.com/open-metadata/openmetadata-nightly/actions/runs/43339655767

Cherry-picked cleanly from main (b264507022f, no conflicts, no 2.1-specific changes). Test-only: two files under openmetadata-integration-tests. The only caller of the changed DataQualityTableTotal.scopedQuery(UUID) signature on 2.1 is TableTotalCountAggregationIT, which this PR updates.

Verification on this branch: not built or run locally. The change is identical to #37698, which was verified on main with TableTotalCountAggregationIT (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" with BigDecimal.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:

  • Bug fix

High-level design:

Not applicable — small test-only fix across two files.

🤖 Generated with Claude Code

* Fix Data Quality table total integration tests

* Remove unit tests for Data Quality integration test helper

(cherry picked from commit b264507)
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

The 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 TableTotalCountAggregationIT parses decimal-form counts like "0.0" with BigDecimal.longValueExact() and scopes its query by schema UUID. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@shrabantipaul-collate
shrabantipaul-collate merged commit 1582a92 into 2.1 Nov 13, 2026
53 of 54 checks passed
@shrabantipaul-collate
shrabantipaul-collate deleted the backport/2.1/pr-37698 branch November 13, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants