Repository navigation
Fixes 33374: allow Table.aliases through the entity patch + bump ingestion 1.13.6.1 - #33400
Conversation
Aliases are recomputed from the source on every run, but every table that already exists in OpenMetadata is updated through a PatchRequest, and build_patch diffs both models through `include=allowed_fields`. With `aliases` missing from the allow-list the field could never produce an operation, so SQL Server synonyms only ever landed on tables created for the first time - silently, with no error and a 100% success run. (cherry picked from commit 7759601) (cherry picked from commit c549c20)
❌ 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 |
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
Code Review ✅ ApprovedBackport adds OptionsDisplay: compact → Counting what did not apply, without listing it. 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 #33377 (itself a cherry-pick of 7759601 from main) to the
1.13.6release branch, plus the accompanying ingestion version bump.Closes #33374
1. Allow
Table.aliasesthrough the entity patchAliases are recomputed from the source on every run, but every table that already exists in OpenMetadata is updated through a
PatchRequest, andbuild_patchdiffs both models throughinclude=allowed_fields. Withaliasesmissing fromALLOWED_COMMON_PATCH_FIELDSthe field could never produce an operation, so SQL Server synonyms only ever landed on tables created for the first time — silently, with no error and a 100% success run.Fix: add
"aliases": TruetoALLOWED_COMMON_PATCH_FIELDSso add/replace/remove operations on the field survive the patch allow-list.Cherry-picked cleanly from
origin/1.13(c549c200af); no conflicts, no manual edits.2. Bump ingestion 1.13.6.0 -> 1.13.6.1
So the fix above ships in a consumable ingestion artifact. Same four files as the reference bump commit 42d0a21 (
bump ingestion 1.13.4.1):ingestion/Dockerfile—ARG RI_VERSIONingestion/operators/docker/Dockerfile—ARG RI_VERSIONingestion/pyproject.toml—versionopenmetadata-airflow-apis/pyproject.toml—versionThese are the only occurrences of
1.13.6.0in the tree.Tests
ingestion/tests/unit/metadata/ingestion/models/test_patch_request.py— 18 passed, covering alias add / replace / removal through the patch path.Greptile Summary
This backport allows source-managed
Table.aliasesvalues to pass through the ingestion entity-patch allow-list and updates the associated Python package release versions.aliasestoALLOWED_COMMON_PATCH_FIELDS.1.13.6.1.Confidence Score: 5/5
The PR appears safe to merge; the alias patch behavior is directly tested and the release-version updates are internally consistent.
No actionable new failures remain. Existing tables can now receive alias add, replace, and remove operations through the configured patch path, and all coupled Python package and Docker version declarations were updated together.
Important Files Changed
Table.aliasesto the common patch allow-list so alias changes reach existing entities.1.13.6.1consistently with release configuration.1.13.6.1package release.1.13.6.1.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR A[Connector recomputes Table aliases] --> B[build_patch compares source and destination] B --> C[ALLOWED_COMMON_PATCH_FIELDS includes aliases] C --> D[Generate add, replace, or remove operation] D --> E[Patch existing table]Reviews (2): Last reviewed commit: "bump ingestion 1.13.6.1" | Re-trigger Greptile