Repository navigation
Fixes 16640: Backport BigQuery shard families to 2.0 - #37002
Conversation
❌ 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 |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
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. 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 |
|



Describe your changes
Fixes #16640
Backports #36867 to
2.0, with the coverage source-selection adjustment from #36999 limited toingestion/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
High-level design
tableShardingon the logical table andexecutionSourceon supported result records. Historical views use the recorded source, including after representative rollover.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.
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 inTestCaseResourceIT.Ingestion integration tests
ingestion/tests/integration/ometa/test_hex_sharding_search.pyexercises the real search engines. The opt-in cloud test was not run as an automated acceptance check.Playwright tests
playwright/e2e/Pages/TableSharding.spec.tscovers 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:checkexits 2 on both unchanged2.0and this branch: 555 baseline diagnostics versus 551 here, with no additional diagnostic counts by file and TypeScript code.yarn lint:playwrightexits 2 on both unchanged2.0and 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