-
Notifications
You must be signed in to change notification settings - Fork 28.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-34881][SQL][FOLLOWUP] Implement toString() and sql() methods f…
…or TRY_CAST ### What changes were proposed in this pull request? Implement toString() and sql() methods for TRY_CAST ### Why are the changes needed? The new expression should have a different name from `CAST` in SQL/String representation. ### Does this PR introduce _any_ user-facing change? Yes, in the result of `explain()`, users can see try_cast if the new expression is used. ### How was this patch tested? Unit tests. Closes #32098 from gengliangwang/tryCastString. Authored-by: Gengliang Wang <ltnwgl@gmail.com> Signed-off-by: Gengliang Wang <ltnwgl@gmail.com>
- Loading branch information
1 parent
3af2c1b
commit bfba7fa
Showing
3 changed files
with
40 additions
and
30 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
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