Skip to content

fix: scope information schema to catalog - #24200

Open
VaibhaveS wants to merge 1 commit into
apache:mainfrom
VaibhaveS:vsekar/information-schema-catalog
Open

fix: scope information schema to catalog#24200
VaibhaveS wants to merge 1 commit into
apache:mainfrom
VaibhaveS:vsekar/information-schema-catalog

Conversation

@VaibhaveS

Copy link
Copy Markdown

Which issue does this PR close?

Rationale for this change

Catalog-qualified information schema queries currently return metadata from every registered catalog.

For example, my_catalog.information_schema.tables should describe only my_catalog, consistent with PostgreSQL's information schema representing the current database.

What changes are included in this PR?

InformationSchemaProvider now receives one resolved catalog directly. Tables, columns, views, and schemas are enumerated only from that catalog.

Unqualified information_schema queries now use the configured default catalog instead of returning metadata from all catalogs.

Are these changes tested?

Yes. Added multi-catalog SQL logic coverage for qualified and unqualified information schema queries.

Are there any user-facing changes?

Yes. Information schema results are now scoped to the resolved catalog.

The InformationSchemaProvider::new signature now accepts a catalog name and CatalogProvider.

@github-actions github-actions Bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) catalog Related to the catalog crate labels Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

catalog Related to the catalog crate core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

information_schema.tables contains all tables from all catalogs instead of current catalog

1 participant