Skip to content

Conversation

@sean-rose
Copy link
Contributor

@sean-rose sean-rose commented Nov 8, 2025

Description

Starting in sqlglot v25.29.0 INFORMATION_SCHEMA view identifiers are parsed differently (tobymao/sqlglot#4336), which didn't work with our existing qualify_table_references_in_file() function logic.

@BenWu came up with this workaround which allows us to upgrade to the latest sqlglot v27.29.0, and I've just put the finishing touches on it by skipping qualifying references in files where Jinja expressions are being used for table/view IDs, and working around other sqlglot breaking changes.

Related Tickets & Documents

Reviewer, please follow this checklist

@sean-rose sean-rose requested a review from a team as a code owner November 8, 2025 03:20
@sean-rose sean-rose changed the title fix(format): Update qualify_table_references_in_file() to work with newer sqlgot versions (DENG-7005) fix(format): Update qualify_table_references_in_file() to work with newer sqlglot versions (DENG-7005) Nov 8, 2025
@dataops-ci-bot

This comment has been minimized.

@dataops-ci-bot

This comment has been minimized.

@dataops-ci-bot
Copy link

Integration report for "test(dependency): Add extract_table_references() test for SQL with temp tables."

sql.diff

No content detected.

@sean-rose sean-rose added this pull request to the merge queue Nov 10, 2025
Merged via the queue into main with commit 073bdac Nov 10, 2025
22 checks passed
@sean-rose sean-rose deleted the DENG-7005-sqlglot-INFORMATION_SCHEMA-fix branch November 10, 2025 21:38
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.

5 participants