-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-50880][SQL] Add a new visitBinaryComparison method to V2Expres…
…sionSQLBuilder ### 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'. Closes #49556 from beliefer/SPARK-50880. Authored-by: beliefer <[email protected]> Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters