Skip to content

Conversation

@kysshsy
Copy link

@kysshsy kysshsy commented Dec 28, 2025

Which issue does this PR close?

Rationale for this change

  • Quoted CTE references (e.g., WITH barbaz AS (...) SELECT * FROM "barbaz") were being collected as table refs and could fall through to catalog lookup instead of resolving to the CTE, especially with custom providers.

What changes are included in this PR?

  • Normalize CTE and table references consistently during collection (preserve quote style; only lowercase unquoted idents when enabled).
  • Avoid double-normalization when converting to TableReference in the resolve path.

Are these changes tested?

Yes

Are there any user-facing changes?

  • Behavior fix for quoted CTE references; no API changes.

@github-actions github-actions bot added the sql SQL Planner label Dec 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implementing CatalogProvider breaks quoted CTE names

1 participant