Skip to content

Information schema refactoring - #26057

Draft
pepijnve wants to merge 10 commits into
apache:mainfrom
pepijnve:information-schema-refactoring
Draft

pepijnve wants to merge 10 commits into
apache:mainfrom
pepijnve:information-schema-refactoring

Conversation

@pepijnve

@pepijnve pepijnve commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

  • None logged yet

This PR builds on #25887 so that should be merged first.

Rationale for this change

To be completed

What changes are included in this PR?

LogicalPlan::DescribeTable has been made been renamed to LogicalPlan::Show and extended to support all show statements.

Handling of show statements has been moved from sql::statement to core::physical_planner.

The implementations themselves have been decoupled from the information_schema tables. This allows SHOW statements to work even if the information schema provider is not enabled.

A new common::information_schema module has been added to avoid string based duplication of the information_schema schema. In other words, duplicate magic strings have been removed.

Are these changes tested?

Covered by SLTs

Are there any user-facing changes?

Yes

  • LogicalPlan::DescribeTable has been replaced with LogicalPlan::Show
  • Availability of SHOW statements is no longer tied to the information_schema schema being accessible in the catalog
  • information_schema.views no longer contains base tables

@github-actions github-actions Bot added documentation Improvements or additions to documentation sql SQL Planner logical-expr Logical plan and expressions optimizer Optimizer rules core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate catalog Related to the catalog crate common Related to common crate execution Related to the execution crate proto Related to proto crate labels Oct 5, 2026
@pepijnve
pepijnve force-pushed the information-schema-refactoring branch from 3ec152b to 71f0578 Compare October 5, 2026 16:15
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 common Related to common crate core Core DataFusion crate documentation Improvements or additions to documentation execution Related to the execution crate logical-expr Logical plan and expressions optimizer Optimizer rules proto Related to proto crate sql SQL Planner sqllogictest SQL Logic Tests (.slt) substrait Changes to the substrait crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants