Skip to content

Fixes 33374: allow Table.aliases through the entity patch + bump ingestion 1.13.6.1 - #33400

Merged
mohityadav766 merged 2 commits into
1.13.6from
backport/table-aliases-patch-allowlist-1.13.6
Sep 16, 2026
Merged

mohityadav766 merged 2 commits into
1.13.6from
backport/table-aliases-patch-allowlist-1.13.6

Conversation

@ulixius9

@ulixius9 ulixius9 commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Backport of #33377 (itself a cherry-pick of 7759601 from main) to the 1.13.6 release branch, plus the accompanying ingestion version bump.

Closes #33374

1. Allow Table.aliases through the entity patch

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 ALLOWED_COMMON_PATCH_FIELDS 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.

Fix: add "aliases": True to ALLOWED_COMMON_PATCH_FIELDS so 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_VERSION
  • ingestion/operators/docker/Dockerfile — ARG RI_VERSION
  • ingestion/pyproject.toml — version
  • openmetadata-airflow-apis/pyproject.toml — version

These are the only occurrences of 1.13.6.0 in the tree.

Tests

ingestion/tests/unit/metadata/ingestion/models/test_patch_request.py — 18 passed, covering alias add / replace / removal through the patch path.

18 passed in 0.05s
Greptile Summary

This backport allows source-managed Table.aliases values to pass through the ingestion entity-patch allow-list and updates the associated Python package release versions.

  • Adds aliases to ALLOWED_COMMON_PATCH_FIELDS.
  • Tests alias creation, extension, removal, and unchanged-state behavior through the production patch configuration.
  • Bumps ingestion and managed API packages and their Docker installation pins to 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
Filename Overview
ingestion/src/metadata/ingestion/models/patch_request.py Adds Table.aliases to the common patch allow-list so alias changes reach existing entities.
ingestion/tests/unit/metadata/ingestion/models/test_patch_request.py Covers alias addition, extension, removal, and no-op behavior using the sink’s patch configuration.
ingestion/pyproject.toml Bumps the ingestion package version to 1.13.6.1 consistently with release configuration.
openmetadata-airflow-apis/pyproject.toml Keeps the managed APIs package version aligned with the ingestion package.
ingestion/Dockerfile Updates the runtime ingestion dependency pin to the aligned 1.13.6.1 package release.
ingestion/operators/docker/Dockerfile Updates the operator image’s ingestion dependency pin to 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]
Loading

Reviews (2): Last reviewed commit: "bump ingestion 1.13.6.1" | Re-trigger Greptile

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)
@ulixius9
ulixius9 requested a review from a team as a code owner September 16, 2026 09:33
@ulixius9
ulixius9 requested review from mohittilala and removed request for a team September 16, 2026 09:33
@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.

@github-actions github-actions Bot added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@ulixius9 ulixius9 changed the title Fixes 33374: allow Table.aliases through the entity patch [1.13.6 backport] Fixes 33374: allow Table.aliases through the entity patch + bump ingestion 1.13.6.1 Sep 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

The Python checkstyle failed.

Please run make py_format and py_format_check in the root of your repository and commit the changes to this PR.
You can also use pre-commit to automate the Python code formatting.

You can install the pre-commit hooks with make install_test precommit_install.

@gitar-bot

gitar-bot Bot commented Sep 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Backport adds aliases to the patch allow-list for Table entities, fixing silent failures when SQL Server synonyms and other source-managed aliases were updated on existing tables. Unit tests cover alias creation, extension, removal, and unchanged states. No issues found.

Review coverage

Rules No rules evaluated

Functional validation Not enabled · Set up

Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@mohityadav766
mohityadav766 merged commit 59c7e6d into 1.13.6 Sep 16, 2026
87 of 109 checks passed
@mohityadav766
mohityadav766 deleted the backport/table-aliases-patch-allowlist-1.13.6 branch September 16, 2026 10:43

This branch was previously deployed

1 inactive deployment
test — 30a21512 Deployed Sep 16, 2026 by ulixius9 via playwright-ci-postgresql (1, 6) #87440
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