Skip to content

[SPARK-38106][SQL] Use error classes in the parsing errors of functions#35865

Closed
ivoson wants to merge 3 commits intoapache:masterfrom
ivoson:SPARK-38106
Closed

[SPARK-38106][SQL] Use error classes in the parsing errors of functions#35865
ivoson wants to merge 3 commits intoapache:masterfrom
ivoson:SPARK-38106

Conversation

@ivoson
Copy link
Contributor

@ivoson ivoson commented Mar 16, 2022

What changes were proposed in this pull request?

Migrate the following errors in QueryExecutionErrors onto use error classes as INVALID_SQL_SYNTAX:

  • functionNameUnsupportedError
  • showFunctionsUnsupportedError
  • showFunctionsInvalidPatternError
  • createFuncWithBothIfNotExistsAndReplaceError
  • defineTempFuncWithIfNotExistsError
  • unsupportedFunctionNameError
  • specifyingDBInCreateTempFuncError
  • invalidNameForDropTempFunc

Why are the changes needed?

Porting parsing errors of functions to new error framework.

Does this PR introduce any user-facing change?

No

How was this patch tested?

UT added.

@github-actions github-actions bot added the SQL label Mar 16, 2022
@ivoson
Copy link
Contributor Author

ivoson commented Mar 16, 2022

cc @MaxGekk

@MaxGekk
Copy link
Member

MaxGekk commented Mar 16, 2022

+1, LGTM. Merging to master.
Thank you, @ivoson.

@MaxGekk MaxGekk closed this in 1b41416 Mar 16, 2022
@ivoson ivoson deleted the SPARK-38106 branch March 16, 2022 11:09
@ivoson
Copy link
Contributor Author

ivoson commented Mar 16, 2022

@MaxGekk Thanks for the review.

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.

2 participants