Skip to content

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

Merged
sycai merged 2 commits intomainfrom
main_chelsealin_sqlglotbug
Apr 7, 2026
Merged

chore(bigframes): update the datetime_ops and isin_join in the sqlglot compiler#16568
sycai merged 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.

@chelsea-lin chelsea-lin requested a review from sycai April 7, 2026 20:30
@chelsea-lin chelsea-lin marked this pull request as ready for review April 7, 2026 20:31
@chelsea-lin chelsea-lin requested review from a team as code owners April 7, 2026 20:31
@sycai sycai merged commit 8a95dfd into main Apr 7, 2026
31 checks passed
@sycai sycai deleted the main_chelsealin_sqlglotbug branch April 7, 2026 20:34
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.

2 participants