discord9 opened a new issue, #17166: URL: https://github.com/apache/datafusion/issues/17166
### Describe the bug This bug involve user defined node as leaf node and a slightly complex query, which will panic with `index out of bounds: the len is 2 but the index is 2` when trying to optimize this query. this bug only appear in `datafusion="45.0.0"`, later version(>= 46.0.0) doesn't appear to have this bug, however I fail to found related fixes to it in changelog of 46.0.0, so put it in here just in case it isn't fully fixed. ### To Reproduce Put lib.rs and Cargo.toml to a blank project and can reproduce this pnaic, backtrace also included [backtrace.log](https://github.com/user-attachments/files/21751830/backtrace.log) [lib.rs.txt](https://github.com/user-attachments/files/21751807/lib.rs.txt) [Cargo.toml.txt](https://github.com/user-attachments/files/21751808/Cargo.toml.txt) ### Expected behavior not panic ### Additional context If this bug is clearly fixed in later version, could anyone point me to the pr that fix this? And feel free to close this issue in that case -- 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-unsubscr...@datafusion.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org