-
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-41780][SQL] Should throw INVALID_PARAMETER_VALUE.PATTERN when …
…the parameters `regexp` is invalid ### What changes were proposed in this pull request? In the PR, I propose to throw error classes - `INVALID_PARAMETER_VALUE.PATTERN` when the parameters `regexp` in regexp_replace & regexp_extract & rlike is invalid. ### Why are the changes needed? Clear error prompt should improve user experience with Spark SQL. The original error prompt is: <img width="475" alt="image" src="https://user-images.githubusercontent.com/15246973/210493673-c1de9927-9a18-4f9d-a94c-48735b6c5e5a.png"> Valid: [a\\d]{0,2} Invalid: [a\\d]{0, 2}  ### Does this PR introduce _any_ user-facing change? Yes. ### How was this patch tested? Add new UT. Pass GA. Closes #39383 from panbingkun/SPARK-41780. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
- Loading branch information
1 parent
6b92cda
commit 15a0f55
Showing
3 changed files
with
76 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