Skip to content

Conversation

@panbingkun
Copy link
Contributor

What changes were proposed in this pull request?

In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042.

Why are the changes needed?

Proper names of error classes should improve user experience with Spark SQL.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GA.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

"The operation <statement> is not allowed on the <objectType>: <objectName>"
]
},
"FUNCTION_WRONG_NUM_ARGS" : {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cloud-fan @srielau Are you ok with the name or maybe just WRONG_NUM_ARGS? Later we will merge DATATYPE_MISMATCH.WRONG_NUM_ARGS into it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WRONG_NUM_ARGs is fine. If we want to keep a longer name I'd prefer ROUTINE over FUNCTIOn for future proofing.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@panbingkun Please, rename it to WRONG_NUM_ARGS.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

"name" -> name,
"expectedInfo" -> expectedInfo,
"actualNumber" -> actualNumber.toString))
"functionName" -> name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, wrap functionName by toSQLId().

@panbingkun panbingkun requested a review from MaxGekk November 24, 2022 01:21
@MaxGekk
Copy link
Member

MaxGekk commented Nov 24, 2022

+1, LGTM. Merging to master.
Thank you, @panbingkun and @srielau for review.

@MaxGekk MaxGekk closed this in 9f0aa27 Nov 24, 2022
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
…P_1042

### What changes were proposed in this pull request?
In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042.

### Why are the changes needed?
Proper names of error classes should improve user experience with Spark SQL.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes apache#38707 from panbingkun/SPARK-41176.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…P_1042

### What changes were proposed in this pull request?
In the PR, I propose to assign a name to the error class _LEGACY_ERROR_TEMP_1042.

### Why are the changes needed?
Proper names of error classes should improve user experience with Spark SQL.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Pass GA.

Closes apache#38707 from panbingkun/SPARK-41176.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants