Repository navigation
Fixes 32030: port ingestion usage regression fixes to 2.0 - #37492
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 |
Code Review ✅ Approved🔴 High risk · Changing service-qualified query lookup and 409 recovery affects persisted query/usage associations; a wrong match could misattribute usage to a table. Ports focused ingestion fixes to 2.0 that look up queries by 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 #32030
Ports the focused ingestion fixes from main to
2.0: look up queries byservice.hash, retry lookup after a concurrent create, and align the usage and DQ regression tests with existing branch behavior.Source changes: #32031, the Postgres test from #33568, the DQ assertions from #33750, and the sample-usage test from #37097 / #37381. The broader resolver and caching refactors are excluded.
Type of change:
High-level design:
One production module changes query lookup identity to match the server. The remaining changes port regression tests and test fixtures; there are no schema, configuration, or workflow changes.
Validation:
Python 3.11, generated models from this
2.0checkout, and the edited source installed in editable mode.tests/unit/ometa/test_query_mixin.py,tests/unit/bulksink/test_metadata_usage.py, andtests/unit/topology/database/test_life_cycle_query_mixin.py.tests/integration/postgres/test_usage.py,tests/integration/usage/test_sample_usage.py,tests/integration/sdk/test_dq_as_code_integration.py,tests/integration/lineage/test_query_lineage_rebuild.py, plusTestOMetaTableAPI::test_same_query_on_second_table_attaches_usage.2.0.7, MySQL metadata storage, Elasticsearch 9.3.0, and PostgreSQL testcontainers for source data. This validates the Python port against a published 2.0 server; the current release-branch server build and other matrix combinations remain for CI.git diff --check, and commit hooks passed.No UI recording is applicable.
Backend and UI checks are not applicable. The complete Python/database matrix remains for CI.
Checklist:
e45f722c6bb; no concrete defects found.