Skip to content

Conversation

@panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Nov 19, 2022

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.

},
"UNSUPPORTED_LITERAL_FOR_SOURCE_TYPE" : {
"message" : [
"Literals of the type <field> are currently not supported for the <sourceDataType> type."
Copy link
Member

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:

  1. throw QueryCompilationErrors.literalTypeUnsupportedForSourceTypeError(extractField, source)
  2. 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

Copy link
Contributor Author

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.

@AmplabJenkins
Copy link

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."
Copy link
Member

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.

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

@panbingkun panbingkun requested a review from MaxGekk November 23, 2022 12:38
@MaxGekk
Copy link
Member

MaxGekk commented Nov 24, 2022

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

@MaxGekk MaxGekk closed this in 1f90e41 Nov 24, 2022
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 15, 2022
…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]>
beliefer pushed a commit to beliefer/spark that referenced this pull request Dec 18, 2022
…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]>
@panbingkun panbingkun deleted the SPARK-41182 branch December 19, 2022 01:35
dongjoon-hyun pushed a commit that referenced this pull request Jan 23, 2024
### 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]>
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.

3 participants