Skip to content

chore(bigframes): update the datetime_ops and isin_join in the sqlglot compiler#16568

Draft
chelsea-lin wants to merge 2 commits intomainfrom
main_chelsealin_sqlglotbug
Draft

chore(bigframes): update the datetime_ops and isin_join in the sqlglot compiler#16568
chelsea-lin wants to merge 2 commits intomainfrom
main_chelsealin_sqlglotbug

Conversation

@chelsea-lin
Copy link
Copy Markdown
Contributor

@chelsea-lin chelsea-lin commented Apr 6, 2026

This update addresses issues identified during performance testing against Ibis golden SQL.

  • datetime_ops: Aligned with Ibis behavior by implementing safe parsing instead of throwing errors.
  • isin_join: Improved performance; benchmark details are available here: [screenshot/vmb8ACvJhDNpccp].

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the PARSE_TIMESTAMP logic with TryCast in datetime operations and optimizes isin_join by utilizing EXISTS instead of IN for multi-column comparisons. A regression was identified in the datetime conversion logic where the op.format parameter is now ignored, which will cause parsing failures for strings that do not follow the default ISO format.

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.

1 participant