Skip to content

Ignore table schema (fixes #114)#115

Merged
vgvoleg merged 1 commit into
mainfrom
issue-114-ignore-schema
Jun 3, 2026
Merged

Ignore table schema (fixes #114)#115
vgvoleg merged 1 commit into
mainfrom
issue-114-ignore-schema

Conversation

@vgvoleg
Copy link
Copy Markdown
Member

@vgvoleg vgvoleg commented Jun 3, 2026

YDB connections are bound to a single database with no schema namespaces (supports_schemas=False).

  • Reflection ignores the schema argument and always targets the connected database.
  • SQL compilation never emits a schema qualifier (visit_table/format_table), so a table reflected with schema=<database> no longer compiles to an unresolvable db.table path.

This unblocks generic two-tier SQLAlchemy tooling (e.g. DataHub) that passes the bound database as schema.

Closes #114

YDB connections are bound to a single database and have no schema
namespaces (supports_schemas=False). Accept and ignore the schema
argument in reflection, and never emit a schema qualifier when
compiling SQL, so generic two-tier SQLAlchemy tooling works.
@vgvoleg vgvoleg force-pushed the issue-114-ignore-schema branch from 8863cc5 to 429002c Compare June 3, 2026 10:19
@vgvoleg vgvoleg merged commit aaf283c into main Jun 3, 2026
6 checks passed
@vgvoleg vgvoleg deleted the issue-114-ignore-schema branch June 3, 2026 11:30
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.

Reflection rejects a schema equal to the connected database (breaks two-tier SQLAlchemy tooling)

1 participant