-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-40984][CORE][SQL] Use
NON_FOLDABLE_INPUT
instead of `FRAME_L…
…ESS_OFFSET_WITHOUT_FOLDABLE` ### What changes were proposed in this pull request? This pr aims replace `FRAME_LESS_OFFSET_WITHOUT_FOLDABLE` with `NON_FOLDABLE_INPUT` to clean up similar error subclass. ### Why are the changes needed? `FRAME_LESS_OFFSET_WITHOUT_FOLDABLE` and `NON_FOLDABLE_INPUT` look similar, but `NON_FOLDABLE_INPUT` is more general ### Does this PR introduce _any_ user-facing change? Yes. The PR changes user-facing error messages. For example, the error message will change from ``` Offset expression "(- nonfoldableliteral())\" must be a literal. ``` to ``` the input offset should be a foldable "INT" expression; however, got "(- nonfoldableliteral())\". ``` ### How was this patch tested? Pass Github Actions Closes #38536 from LuciferYang/SPARK-40984. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
- Loading branch information
1 parent
755ed45
commit 5c6c5e6
Showing
4 changed files
with
15 additions
and
11 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
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