-
Notifications
You must be signed in to change notification settings - Fork 28k
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
[SPARK-47333][SQL] Use checkInputDataTypes to check the parameter types of the function to_xml
#45167
Conversation
…`to_xml` & remove _LEGACY_ERROR_TEMP_3234
…to_xml & remove _LEGACY_ERROR_TEMP_3234
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.
@panbingkun Could fill in PR description, please. You changes are pretty useful, I believe.
Okay, let me update it. spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/csvExpressions.scala Line 270 in 76b1c12
spark/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/xmlExpressions.scala Line 287 in 76b1c12
I originally wanted to continue this PR after merging 44665 into codebase (so that the error classes If you have time, can you help me review this PR 44665 first? Or I can modify this PR first and temporarily Thank you very much! ❤️ |
to_xml
& remove _LEGACY_ERROR_TEMP_3234to_xml
& remove _LEGACY_ERROR_TEMP_3234
I will look at it soon. Thanks. |
to_xml
& remove _LEGACY_ERROR_TEMP_3234to_xml
…es of the function to_xml
+1, LGTM. Merging to master. |
…es of the function `to_xml` ### What changes were proposed in this pull request? The pr aims to use `checkInputDataTypes` to check the parameter `types` of the function `to_xml`. ### Why are the changes needed? Follow the common pattern for checking input data types in `Expression`, `check the data type` during the `analysis` logic in advance . ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? - Add new UT. - Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes apache#45167 from panbingkun/LEGACY_ERROR_TEMP_3234. Authored-by: panbingkun <panbingkun@baidu.com> Signed-off-by: Max Gekk <max.gekk@gmail.com>
What changes were proposed in this pull request?
The pr aims to use
checkInputDataTypes
to check the parametertypes
of the functionto_xml
.Why are the changes needed?
Follow the common pattern for checking input data types in
Expression
,check the data type
during theanalysis
logic in advance .Does this PR introduce any user-facing change?
No.
How was this patch tested?
Was this patch authored or co-authored using generative AI tooling?
No.