You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "viirya (via GitHub)" <gi...@apache.org> on 2024/10/12 07:46:13 UTC
[I] Comet named_struct fails on duplicate field names [datafusion-comet]
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Comet named_struct fails on duplicate field names [datafusion-comet]
Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #1015: Comet named_struct fails on duplicate field names
URL: https://github.com/apache/datafusion-comet/issues/1015
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org