Skip to content

[2.0] Fixes #32183: render Athena table names without default database - #37438

Merged
TeddyCr merged 1 commit into
open-metadata:2.0from
TeddyCr:backport/32630-2.0
Nov 9, 2026
Merged

TeddyCr merged 1 commit into
open-metadata:2.0from
TeddyCr:backport/32630-2.0

Conversation

@TeddyCr

@TeddyCr TeddyCr commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Describe your changes:

Backports #32630 to 2.0.

Fixes #32183.

Athena rule-library SQL expressions now render {{ table_name }} as schema.table, omitting OpenMetadata's placeholder database segment for both table and column rules. Services such as PostgreSQL retain database.schema.table.

Cherry-picked commit 221af450cfcfd110a55685c741b2be424e248245. Resolved the test import conflict by preserving the table SQLAlchemy validator import and existing sandbox tests already present in 2.0.

Type of change:

  • Bug fix

Tests:

  • Added the original four regression cases covering Athena and PostgreSQL identifiers for table and column validators.
  • Generated Python models from the 2.0 schemas and regenerated the Python ANTLR parsers in the isolated checkout.
  • PYTHONPATH=ingestion/src python3 -m pytest -q -c ingestion/pyproject.toml ingestion/tests/unit/observability/data_quality/validations/test_rule_library_sql_expression_validator.py — 34 passed.
  • ruff check on all three changed files — passed.
  • ruff format --check on all three changed files — passed.
  • git diff --check — passed.

Backend integration and UI tests are not applicable. No live Athena integration test was run.

…database (open-metadata#32630)

Signed-off-by: Atirna <[email protected]>
Co-authored-by: Harsh Soni <[email protected]>
(cherry picked from commit 221af45)
@TeddyCr
TeddyCr requested a review from a team as a code owner November 9, 2026 19:52
@TeddyCr
TeddyCr requested review from ulixius9 and removed request for a team November 9, 2026 19:52
@github-actions

github-actions Bot commented Nov 9, 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 added Ingestion safe to test Add this label to run secure Github workflows on PRs labels Nov 9, 2026
@gitar-bot

gitar-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Omitting Athena’s placeholder database in rule SQL could resolve table references incorrectly, causing data-quality validations to fail or inspect unintended tables.

Fixes Athena rule-library SQL expressions so {{ table_name }} renders as schema.table without the placeholder database segment, while PostgreSQL keeps database.schema.table. Regression tests cover table and column validators for both services, and no issues were 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

@TeddyCr
TeddyCr merged commit 7692638 into open-metadata:2.0 Nov 9, 2026
40 of 48 checks passed

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