alamb opened a new issue, #7418:
URL: https://github.com/apache/arrow-datafusion/issues/7418

   ### Describe the bug
   
   While working on upgrading DataFusion in IOx in 
https://github.com/influxdata/influxdb_iox/pull/8577 one of our integration 
tests is failing like this:
   ```
   ---- physical_optimizer::projection_pushdown::tests::test_integration stdout 
----
   thread 'physical_optimizer::projection_pushdown::tests::test_integration' 
panicked at 'index out of bounds: the len is 0 but the index is 0', 
/Users/alamb/.cargo/git/checkouts/arrow-datafusion-71ae82d9dec9a01c/aa1d72c/datafusion/physical-expr/src/utils.rs:954:54
   stack backtrace:
      0: rust_begin_unwind
                at 
/rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/std/src/panicking.rs:593:5
      1: core::panicking::panic_fmt
                at 
/rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/panicking.rs:67:14
      2: core::panicking::panic_bounds_check
                at 
/rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/panicking.rs:162:5
      3: datafusion_physical_expr::utils::find_orderings_of_exprs::{{closure}}
                at 
/Users/alamb/.cargo/git/checkouts/arrow-datafusion-71ae82d9dec9a01c/aa1d72c/datafusion/physical-expr/src/utils.rs:954:54
      4: core::option::Option<T>::map
                at 
/rustc/eb26296b556cef10fb713a38f3d16b9886080f26/library/core/src/option.rs:1075:29
      5: datafusion_physical_expr::utils::find_orderings_of_exprs
                at 
/Users/alamb/.cargo/git/checkouts/arrow-datafusion-71ae82d9dec9a01c/aa1d72c/datafusion/physical-expr/src/utils.rs:954:9
      6: datafusion::physical_plan::projection::ProjectionExec::try_new
                at 
/Users/alamb/.cargo/git/checkouts/arrow-datafusion-71ae82d9dec9a01c/aa1d72c/datafusion/core/src/physical_plan/projection.rs:143:25
      7: 
iox_query::physical_optimizer::projection_pushdown::wrap_user_into_projections
                at ./src/physical_optimizer/projection_pushdown.rs:398:25
      8: 
<iox_query::physical_optimizer::projection_pushdown::ProjectionPushdown as 
datafusion::physical_optimizer::optimizer::PhysicalOptimizerRule>::optimize::{{closure}}
   ```
   
   The test is here: 
https://github.com/influxdata/influxdb_iox/blob/2eb74ddb87bb1da2899518a095854c150b21ef03/iox_query/src/physical_optimizer/projection_pushdown.rs#L1318
   
   I believe it is failing in `find_orderings_of_exprs` that was added in 
https://github.com/apache/arrow-datafusion/pull/7364 by @berkaysynnada (looks 
like it needs a check for empty).
   
   
   ### To Reproduce
   
   See https://github.com/influxdata/influxdb_iox/pull/8577
   
   ### 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]

Reply via email to