Skip to content
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

Java Arrow stream reader cannot read struct vector with duplicate field name #777

Closed
viirya opened this issue Aug 4, 2024 · 0 comments · Fixed by #776
Closed

Java Arrow stream reader cannot read struct vector with duplicate field name #777

viirya opened this issue Aug 4, 2024 · 0 comments · Fixed by #776
Labels
bug Something isn't working

Comments

@viirya
Copy link
Member

viirya commented Aug 4, 2024

Describe the bug

Found this bug when fixing Spark SQL test failures for #651.

We use Java Arrow stream reader to reads Arrow-format shuffle data. But if there is struct vector with duplicate field name, Java Arrow will throw the following error:

[info]   Cause: org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 311.0 failed 1 times, most recent failure: Lost task 1.0 in stage 311.0 (TID 882) (192.168.86.44 executor driver): java.lang.Illegal
ArgumentException: not all nodes and buffers were consumed. nodes: [ArrowFieldNode [length=4, nullCount=0]] buffers: [ArrowBuf[9855], address:4929620864, capacity:28, ArrowBuf[9857], address:4929620928, capacity:1, ArrowBuf[9859], address:4929620992, capacity:32]                                                                                                                                                                                                       [info]  at org.apache.comet.shaded.arrow.vector.VectorLoader.load(VectorLoader.java:89)                                                                                                                                                
[info]  at org.apache.comet.shaded.arrow.vector.ipc.ArrowReader.loadRecordBatch(ArrowReader.java:220)                                                                                                                                  
[info]  at org.apache.comet.shaded.arrow.vector.ipc.ArrowStreamReader.loadNextBatch(ArrowStreamReader.java:161)                                                                                                                        
[info]  at org.apache.comet.vector.StreamReader.nextBatch(StreamReader.scala:41)                                                                                                                                                       

Steps to reproduce

No response

Expected behavior

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant