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

   ### Describe the bug
   
   When I was in use date_bin functions, it needs to be the result of 
milliseconds. I try to use this method for the following transformations:
   ```rust
           let arrow_record_batch: ArrowRecordBatch = ....;
           let columns = arrow_record_batch.columns();
           let nanosecond_columns = ColumnarValue::Array(columns[0].clone());
           let millis_columns = to_timestamp_millis(&[nanosecond_columns ]);
           match result {
               Ok(m) => {
                   println!("cast ok:{:?}", m);
               },
               Err(e) => {
                   println!("cast fail:{}", e);
               }
           };
   ```
   the error info is :
   ```
   cast fail:Internal error: Unsupported data type Timestamp(Nanosecond, None) 
for function to_timestamp_millis. This was likely caused by a bug in 
DataFusion's code and we would welcome that you file an bug report in our issue 
tracker
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   the type cast was ok
   
   ### 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