viirya opened a new issue, #1015:
URL: https://github.com/apache/datafusion-comet/issues/1015
### Describe the bug
Spark named_struct expression doesn't forbid duplicate field names. Comet
named_struct implementation follows Spark.
However, Java Arrow when importing arrays, it binds arrays by field name. So
if you have a struct array with duplicate field names, an error like this will
be thrown:
```
org.apache.spark.SparkException: Job aborted due to stage failure: Task 0
in stage 5959.0 failed 1 times, most recent failure: Lost task 0.0 in stage
5959.0 (TID 15003) (192.168.86.44 executor driver): java.lang.IllegalStateExcep
tion: ArrowArray struct has 2 children (expected 1)
```
### Steps to reproduce
_No response_
### Expected behavior
_No response_
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]