Omega359 opened a new issue, #15167:
URL: https://github.com/apache/datafusion/issues/15167

   ### Describe the bug
   
   ```
   Benchmarking date_trunc_minute_1000: Warming up for 3.0000 s
   thread 'main' panicked at 
datafusion/functions/src/datetime/date_trunc.rs:149:16:
   index out of bounds: the len is 1 but the index is 1
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   ```
   
   The line # may be off because I'm seeing this in a sidebranch I'm working on 
but I'm fairly certain this will happen in main too. 
   
   The issue is the return type is wrong in the benchmark
   
   ```rust
   let return_type = &udf.return_type(&[timestamps.data_type()]).unwrap();
   ```
   
   I think this was broken in #15049
   
   ### To Reproduce
   
   _No response_
   
   ### 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: 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

Reply via email to