Repository navigation
[2.0] Fixes #32183: render Athena table names without default database - #37438
Conversation
…database (open-metadata#32630) Signed-off-by: Atirna <[email protected]> Co-authored-by: Harsh Soni <[email protected]> (cherry picked from commit 221af45)
❌ 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🟡 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 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:
Backports #32630 to
2.0.Fixes #32183.
Athena rule-library SQL expressions now render
{{ table_name }}asschema.table, omitting OpenMetadata's placeholder database segment for both table and column rules. Services such as PostgreSQL retaindatabase.schema.table.Cherry-picked commit
221af450cfcfd110a55685c741b2be424e248245. Resolved the test import conflict by preserving the table SQLAlchemy validator import and existing sandbox tests already present in2.0.Type of change:
Tests:
2.0schemas 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 checkon all three changed files — passed.ruff format --checkon all three changed files — passed.git diff --check— passed.Backend integration and UI tests are not applicable. No live Athena integration test was run.