andygrove opened a new issue, #2907: URL: https://github.com/apache/arrow-datafusion/issues/2907
**Describe the bug** I am trying to run some complex SQL and am seeing errors such as: ``` thread 'q11' panicked at 'index out of bounds: the len is 12 but the index is 12', /home/andy/.cargo/git/checkouts/arrow-datafusion-71ae82d9dec9a01c/9401d6d/datafusion/optimizer/src/projection_push_down.rs:159:39 ``` With the changes in https://github.com/apache/arrow-datafusion/pull/2900 I see a slighter more informative error: ``` FAILURE: Plan("Projection has mismatch between number of expressions (12) and number of fields in schema (42)") ``` **To Reproduce** I do not have a repro to share currently. I am in the process of debugging this. **Expected behavior** Should not fail. Rules should avoid changing plans if there are errors rather than panic. **Additional context** None -- 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]
