Skip to content
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

[SPARK-50880][SQL] Add a new visitBinaryComparison method to V2ExpressionSQLBuilder #49556

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beliefer
Copy link
Contributor

What changes were proposed in this pull request?

This PR proposes to add a new visitBinaryComparison method to V2ExpressionSQLBuilder.

Why are the changes needed?

The origin visitBinaryComparison method is not good for users when the compare predicate is related to the data type.
Such as: Oracle doesn't support predicate '=' for binary and need use DBMS_LOB.COMPARE to replace.
So the old visitBinaryComparison method is not flexible and introduce some hacker code.

Does this PR introduce any user-facing change?

'No'.
Just add a new API.

How was this patch tested?

GA.

Was this patch authored or co-authored using generative AI tooling?

'No'.

@github-actions github-actions bot added the SQL label Jan 17, 2025
@beliefer
Copy link
Contributor Author

ping @cloud-fan cc @sunxiaoguang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant