-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-41182][SQL] Assign a name to the error class _LEGACY_ERROR_TEMP_1102 #38725
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
| }, | ||
| "UNSUPPORTED_LITERAL_FOR_SOURCE_TYPE" : { | ||
| "message" : [ | ||
| "Literals of the type <field> are currently not supported for the <sourceDataType> type." |
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.
Looking at where the error comes from:
Line 159 in 51e4c2c
throw QueryCompilationErrors.literalTypeUnsupportedForSourceTypeError(extractField, source) Line 2795 in b14da8b
throw QueryCompilationErrors.literalTypeUnsupportedForSourceTypeError(extractField, source)
, the error message and error class name confuse slightly. The error is mostly about an extract field. How about error class name:
INVALID_EXTRACT_FIELD
Also cc @srielau
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.
OK, Let me to do it.
|
Can one of the admins verify this patch? |
| }, | ||
| "INVALID_EXTRACT_FIELD" : { | ||
| "message" : [ | ||
| "Literals of the type <field> are currently not supported for the <sourceDataType> type." |
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.
Could you make the error message more clear and precise. Let's talk specifically about the invalid extract field.
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.
Done
|
+1, LGTM. Merging to master. |
…P_1102 ### What changes were proposed in this pull request? In the PR, I propose to assign the name `INVALID_EXTRACT_FIELD` to the error class `_LEGACY_ERROR_TEMP_1102`. ### 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#38725 from panbingkun/SPARK-41182. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
…P_1102 ### What changes were proposed in this pull request? In the PR, I propose to assign the name `INVALID_EXTRACT_FIELD` to the error class `_LEGACY_ERROR_TEMP_1102`. ### 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#38725 from panbingkun/SPARK-41182. Authored-by: panbingkun <[email protected]> Signed-off-by: Max Gekk <[email protected]>
### What changes were proposed in this pull request? This pr aims to upgrade Arrow from 14.0.2 to 15.0.0, this version fixes the compatibility issue with Netty 4.1.104.Final(GH-39265). Additionally, since the `arrow-vector` module uses `eclipse-collections` to replace `netty-common` as a compile-level dependency, Apache Spark has added a dependency on `eclipse-collections` after upgrading to use Arrow 15.0.0. ### Why are the changes needed? The new version brings the following major changes: Bug Fixes GH-34610 - [Java] Fix valueCount and field name when loading/transferring NullVector GH-38242 - [Java] Fix incorrect internal struct accounting for DenseUnionVector#getBufferSizeFor GH-38254 - [Java] Add reusable buffer getters to char/binary vectors GH-38366 - [Java] Fix Murmur hash on buffers less than 4 bytes GH-38387 - [Java] Fix JDK8 compilation issue with TestAllTypes GH-38614 - [Java] Add VarBinary and VarCharWriter helper methods to more writers GH-38725 - [Java] decompression in Lz4CompressionCodec.java does not set writer index New Features and Improvements GH-38511 - [Java] Add getTransferPair(Field, BufferAllocator, CallBack) for StructVector and MapVector GH-14936 - [Java] Remove netty dependency from arrow-vector GH-38990 - [Java] Upgrade to flatc version 23.5.26 GH-39265 - [Java] Make it run well with the netty newest version 4.1.104 The full release notes as follows: - https://arrow.apache.org/release/15.0.0.html ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #44797 from LuciferYang/SPARK-46718. Authored-by: yangjie01 <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
In the PR, I propose to assign the name
INVALID_EXTRACT_FIELDto the error class_LEGACY_ERROR_TEMP_1102.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.