-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-40898][SQL] Quote function names in datatype mismatch errors #38370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@LuciferYang @panbingkun Could you review this PR, please. |
|
The code change is fine to me, but it seems that some related tests need to be fixed |
| "messageParameters" : { | ||
| "dataType" : "(\"INTERVAL MONTH\" or \"INTERVAL DAY\")", | ||
| "functionName" : "function array", | ||
| "functionName" : "`function array`", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems wrong...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be "function array"?
|
Merging to master. Thank you, @cloud-fan and @LuciferYang for review. |
### What changes were proposed in this pull request? In the PR, I propose to quote function names by `toSQLId()` that are passed to DataTypeMismatch as message parameters. ### Why are the changes needed? To be consistent w/ other error messages. ### Does this PR introduce _any_ user-facing change? Yes, it changes user-facing error message. ### How was this patch tested? By running the modified test suites: ``` $ PYSPARK_PYTHON=python3 build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite" ``` Closes apache#38370 from MaxGekk/quote-ids-datatype-mismatch. Authored-by: Max Gekk <[email protected]> Signed-off-by: Max Gekk <[email protected]>
What changes were proposed in this pull request?
In the PR, I propose to quote function names by
toSQLId()that are passed to DataTypeMismatch as message parameters.Why are the changes needed?
To be consistent w/ other error messages.
Does this PR introduce any user-facing change?
Yes, it changes user-facing error message.
How was this patch tested?
By running the modified test suites: