Skip to content

fix: keep quarantine database when table name is unqualified - #153

Merged
rederik76 merged 1 commit into
mainfrom
fix/quarantine-unqualified-table-keeps-database
Sep 7, 2026
Merged

rederik76 merged 1 commit into
mainfrom
fix/quarantine-unqualified-table-keeps-database

Conversation

@rederik76

@rederik76 rederik76 commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Keep quarantine_target_details.database when table is an unqualified name so TargetFactory can qualify it once.
  • Still drop database when table is already catalog.schema.table, to avoid double-qualifying.

Note - ideally we'd prevent fully qualified names in the table property and force use of database and optionally the table name (unqualified) but this may break things for existing deployments.

Closes #152

Test plan

  • pytest tests/unit/dataflow/test_quarantine_logic.py (13 passed)
  • Spec with database + unqualified table creates the quarantine table in the configured catalog/schema, not the pipeline default

Clearing database whenever table was set dropped an unqualified
quarantine name into the pipeline default schema. Keep database unless
table is already catalog.schema.table.
@rederik76 rederik76 self-assigned this Sep 6, 2026
@rederik76
rederik76 requested a review from haillew September 6, 2026 09:19

@haillew haillew left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rederik76
rederik76 merged commit 0e8d0ca into main Sep 7, 2026
5 checks passed
@rederik76
rederik76 deleted the fix/quarantine-unqualified-table-keeps-database branch September 7, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: Unqualified quarantine table name drops database and lands in the pipeline default schema

2 participants