You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2025/03/19 01:41:15 UTC
[I] feat: fix schema issues for `native reader - read STRUCT of ARRAY fields` [datafusion-comet]
comphead opened a new issue, #1551:
URL: https://github.com/apache/datafusion-comet/issues/1551
Followup ticket to fix schema issues for `native reader - read STRUCT of ARRAY fields`
_Originally posted by @comphead in https://github.com/apache/datafusion-comet/pull/1550#discussion_r2002258552_
--
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] feat: fix schema issues for `native reader - read STRUCT of ARRAY fields` [datafusion-comet]
Posted by "parthchandra (via GitHub)" <gi...@apache.org>.
parthchandra commented on issue #1551:
URL: https://github.com/apache/datafusion-comet/issues/1551#issuecomment-2744739770
fyi, currently some tests in Spark SQL (e.g. `"add a nested column at the end of the leaf struct column"`) fail because of structs like
```
struct
+- array
+- struct
```
The tests fail with
```
Caused by: org.apache.comet.CometNativeException: no entry found for key
[info] at comet::errors::init::{{closure}}(__internal__:0)
[info] at std::panicking::rust_panic_with_hook(__internal__:0)
[info] at std::panicking::begin_panic_handler::{{closure}}(__internal__:0)
[info] at std::sys::backtrace::__rust_end_short_backtrace(__internal__:0)
[info] at rust_begin_unwind(__internal__:0)
[info] at core::panicking::panic_fmt(__internal__:0)
[info] at core::option::expect_failed(__internal__:0)
[info] at comet::parquet::parquet_support::cast_struct_to_struct(__internal__:0)
[info] at comet::parquet::parquet_support::cast_array(__internal__:0)
[info] at comet::parquet::parquet_support::cast_struct_to_struct(__internal__:0)
[info] at comet::parquet::parquet_support::cast_array(__internal__:0)
[info] at comet::parquet::parquet_support::spark_parquet_convert(__internal__:0)
[info] at <core::iter::adapters::GenericShunt<I,R> as core::iter::traits::iterator::Iterator>::next(__internal__:0)
[info] at <comet::parquet::schema_adapter::SchemaMapping as datafusion::datasource::schema_adapter::SchemaMapper>::map_batch(__internal__:0)
[info] at <futures_util::stream::stream::map::Map<St,F> as futures_core::stream::Stream>::poll_next(__internal__:0)
[info] at <datafusion_datasource::file_stream::FileStream as futures_core::stream::Stream>::poll_next(__internal__:0)
[info] at Java_org_apache_comet_parquet_Native_readNextRecordBatch(__internal__:0)
[info] at <unknown>(__internal__:0)
[info] at org.apache.comet.parquet.Native.readNextRecordBatch(Native Method)
```
--
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
Re: [I] feat: fix schema issues for `native reader - read STRUCT of ARRAY fields` [datafusion-comet]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #1551:
URL: https://github.com/apache/datafusion-comet/issues/1551#issuecomment-2735107639
Both datafusion and iceberg compat fails on
```
native reader - read STRUCT of ARRAY fields - native_datafusion *** FAILED *** (191 milliseconds)
org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 29.0 failed 1 times,
most recent failure: Lost task 1.0 in stage 29.0 (TID 35) (192.168.4.142 executor driver):
org.apache.comet.CometNativeException: called `Result::unwrap()` on an `Err` value:
InvalidArgumentError("Incorrect datatype for StructArray field \"col\", expected List(Field { name: \"item\",
data_type: Int32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} })
got List(Field { name: \"item\", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })")
native reader - read STRUCT of ARRAY fields - native_iceberg_compat *** FAILED *** (82 milliseconds)
org.apache.spark.SparkException: Job aborted due to stage failure:
Task 1 in stage 31.0 failed 1 times, most recent failure: Lost task 1.0 in stage 31.0 (TID 39) (192.168.4.142 executor driver):
org.apache.comet.CometNativeException: called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Incorrect datatype for StructArray field \"col\",
expected List(Field { name: \"item\", data_type: Int32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} })
got List(Field { name: \"item\", data_type: Int32, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} })")
```
--
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
Re: [I] feat: fix schema issues for `native reader - read STRUCT of ARRAY fields` [datafusion-comet]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed issue #1551: feat: fix schema issues for `native reader - read STRUCT of ARRAY fields`
URL: https://github.com/apache/datafusion-comet/issues/1551
--
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