Skip to content

chore: Implement compile_isin for SQLGlot compiler and add unit tests #1854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chelsea-lin
Copy link
Contributor

Fixes internal issue 427767681🦕

Adds the `compile_isin` method to the `SQLGlotCompiler` to handle `IsInNode` compilation to SQL `IN` or `NOT IN` clauses.

Includes comprehensive unit tests for various scenarios, including:
- Basic IS IN and IS NOT IN functionality.
- Handling of empty value lists.
- Usage with different data types.
- Non-literal values in the IN list.
- Column names requiring quoting.
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant