Dandandan commented on issue #1064:
URL:
https://github.com/apache/arrow-datafusion/issues/1064#issuecomment-931953379
Full trace
```
> SELECT SUM(d)
FROM (
SELECT 1 as c, 2 as d
UNION ALL
SELECT 1 as c, 3 AS d
);
thread 'main' panicked at 'index out of bounds: the len is 1 but the index
is 1', ./src/datatypes/schema.rs:165:10
stack backtrace:
0: rust_begin_unwind
at
/rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
1: core::panicking::panic_fmt
at
/rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14
2: core::panicking::panic_bounds_check
at
/rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:69:5
3: arrow::datatypes::schema::Schema::field
4: <datafusion::physical_plan::expressions::column::Column as
datafusion::physical_plan::PhysicalExpr>::data_type
5: <core::iter::adapters::map::Map<I,F> as
core::iter::traits::iterator::Iterator>::try_fold
6: <alloc::vec::Vec<T> as
alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
7: core::iter::adapters::process_results
8: datafusion::physical_plan::type_coercion::coerce
9: datafusion::physical_plan::aggregates::create_aggregate_expr
10:
datafusion::physical_plan::planner::DefaultPhysicalPlanner::create_aggregate_expr
11: <core::iter::adapters::map::Map<I,F> as
core::iter::traits::iterator::Iterator>::try_fold
12: <alloc::vec::Vec<T> as
alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
13: core::iter::adapters::process_results
14:
datafusion::physical_plan::planner::DefaultPhysicalPlanner::create_initial_plan
15:
datafusion::physical_plan::planner::DefaultPhysicalPlanner::create_initial_plan
16: <datafusion::physical_plan::planner::DefaultPhysicalPlanner as
datafusion::physical_plan::planner::PhysicalPlanner>::create_physical_plan
17: <datafusion::execution::context::DefaultQueryPlanner as
datafusion::execution::context::QueryPlanner>::create_physical_plan
18: datafusion::execution::context::ExecutionContext::create_physical_plan
19: <core::future::from_generator::GenFuture<T> as
core::future::future::Future>::poll
20: <core::future::from_generator::GenFuture<T> as
core::future::future::Future>::poll
21: <core::future::from_generator::GenFuture<T> as
core::future::future::Future>::poll
22: <core::future::from_generator::GenFuture<T> as
core::future::future::Future>::poll
23: tokio::runtime::thread_pool::ThreadPool::block_on
24: tokio::runtime::Runtime::block_on
25: datafusion_cli::main
```
--
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]