Skip to content

Fixes 16640: Backport BigQuery shard families to 2.0 - #37002

Merged
harshach merged 4 commits into
2.0from
backport-36867-bigquery-sharding-2.0
Nov 4, 2026
Merged

harshach merged 4 commits into
2.0from
backport-36867-bigquery-sharding-2.0

Conversation

@IceS2

@IceS2 IceS2 commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes

Fixes #16640

Backports #36867 to 2.0, with the coverage source-selection adjustment from #36999 limited to ingestion/pyproject.toml.

BigQuery daily tables can be ingested as a stable logical shard family. Metadata, lineage, profiling, samples and quality results attach to the logical table while recording the physical table used for execution. The metadata ingestion form exposes the grouping toggle; omitted API/YAML configuration stays disabled.

Type of change

  • Improvement

High-level design

  • Keep connector-specific naming and resolution in connector implementations, consumed through shared table binding and lookup code. Preserve ordinary-table lookup behavior across SQL lineage, dbt, dashboard adapters and usage.
  • Persist tableSharding on the logical table and executionSource on supported result records. Historical views use the recorded source, including after representative rollover.
  • Use bounded discovery, collision protection and a single inventory refresh when the selected representative disappears. Grouping mode changes reconcile obsolete identities through existing soft deletion.
  • Merge source lifecycle creation using the earliest known value and activity using the latest known values, preserving missing values and catalog identity. Include checkpointed lifecycle sentinel cleanup for MySQL and PostgreSQL in the 2.0 migration path.
  • Adapt the UI to 2.0's existing Recharts components. Keep quality-chart provenance outside the chart's sizing container to prevent repeated height growth. Physical-name search suggestions remain separate from ordinary search pagination and filters.
  • Include only the resolution prerequisites required by this backport, retaining the existing 2.0 connector and CLI test infrastructure. No migration CLI or broad ServiceSpec conversion is introduced.

Sharded operation metrics remain deferred. The existing continue-after-sink-error behavior is unchanged: mode-switch reconciliation is not transactional with replacement writes. Wildcard hydration may return partial results with a warning, as agreed for the original implementation.

Tests

All passing entries below exited 0. Overlapping test selections are reported separately, not added together.

Check Result
Broad ingestion regression selection 1,737 passed, 3 skipped
Final focused resolution, discovery, execution source and OpenLineage selection 294 passed
Real Elasticsearch and OpenSearch adapter/search integration 10 passed
Java lifecycle, table validation and RDF unit tests 31 passed
Java table-sharding, lifecycle and quality-result API integration 19 passed
Lifecycle migration integration 3 passed on MySQL; 3 passed on PostgreSQL
Focused UI Jest suites 157 passed across 13 suites
Quality UI selection after chart sizing correction 39 passed
Sharding Playwright suite, including sharded and ordinary quality-chart sizing 7 passed
Python static checks 0 errors, 153 warnings
Changed-file Python/UI formatting and lint; Java Spotless Passed
Generated-model regeneration comparison Fresh apart from generated timestamps
Production UI build and backend/distribution packaging Passed
Git diff whitespace check Passed

The broad Python command completed successfully, but its run wrapper flagged concurrent repository changes. The final focused selection ran against the frozen source and its wrapper passed. Changed-class coverage percentages were not collected.

Use cases covered

Discovery drift, collision handling, logical identity, lookup ambiguity, wildcard bounds and warnings, SQL/view/dashboard/dbt adapters, ordinary-table behavior, lifecycle merging, invalid descriptor updates, persisted execution provenance, and chart sizing.

Backend integration tests

TableShardingIT, LifeCycleMergeIT, LifeCycleCreatedSentinelMigrationIT, and the quality-result evaluation-scope case in TestCaseResourceIT.

Ingestion integration tests

ingestion/tests/integration/ometa/test_hex_sharding_search.py exercises the real search engines. The opt-in cloud test was not run as an automated acceptance check.

Playwright tests

playwright/e2e/Pages/TableSharding.spec.ts covers the UI behavior, including stable chart dimensions over repeated animation frames with and without execution provenance.

Local stack checks

API-triggered ordinary-table metadata, profiler, samples, lineage and quality pipelines completed successfully. User-run BigQuery metadata, profiling, samples, view lineage and quality runs were checked through the local API, including persisted execution source and wildcard column mappings. The corrected quality chart was also inspected in the browser.

Existing broad-check failures

  • yarn tsc:check exits 2 on both unchanged 2.0 and this branch: 555 baseline diagnostics versus 551 here, with no additional diagnostic counts by file and TypeScript code.
  • yarn lint:playwright exits 2 on both unchanged 2.0 and this branch because of stale suppressions. Both report 0 errors and 230 warnings. Changed-file lint and the browser tests pass.

These baseline failures were not suppressed or repaired as unrelated backport work.

Remaining validation

This is a draft pending a representative rollover with historical-result inspection in the 2.0 catalog, PII classification validation, and live Hex ingestion. Classification runs completed, but expected tags were absent on both the ordinary control and the sharded probe, so that behavior is not counted as verified. Automated adapter coverage is passing.

UI screen recording / screenshots

Pending a recording using generic fixtures. Local browser inspection and the automated browser checks above are complete.

Checklist

  • PR title and body reference the original issue.
  • Schema changes include generated models and applicable migration handling.
  • Unit, integration and Playwright results are listed above.
  • UI recording attached.
  • Remaining manual validation completed.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 3, 2026
@IceS2
IceS2 marked this pull request as ready for review November 3, 2026 23:25
@IceS2
IceS2 requested review from a team as code owners November 3, 2026 23:25
@IceS2
IceS2 requested review from Rohit0301, akashverma0786 and manerow and removed request for a team November 3, 2026 23:25
@github-actions

github-actions Bot commented Nov 3, 2026

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.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 568 → 570
- 2 added, 0 removed, 2 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/Database/Profiler/TestSummary/TestSummary.tsx
  openmetadata-ui/src/main/resources/ui/src/generated/tests/testCase.ts

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/table.ts
  openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@pmbrull
pmbrull requested review from a team, akash-jain-10, harshach and tutte as code owners November 3, 2026 23:25
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.59% (83544/121801) 53.63% (51975/96910) 54.27% (15416/28402)

@gitar-bot

gitar-bot Bot commented Nov 4, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

🔴 High risk · BigQuery sharding changes catalog identity and a lifecycle migration cleans stored timestamps; errors could misassociate tables or distort historical metadata.

Backports BigQuery shard family ingestion to 2.0, letting daily sharded tables be ingested as a stable logical table while recording the physical table used for execution. 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

@sonarqubecloud

sonarqubecloud Bot commented Nov 4, 2026

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ingestion safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants