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

   ### Describe the bug
   
   Found when working on https://github.com/apache/datafusion-comet/pull/3470 
   
   ```
   - width_bucket - with range data *** FAILED *** (110 milliseconds)
     org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 
in stage 186.0 failed 1 times, most recent failure: Lost task 1.0 in stage 
186.0 (TID 536) (localhost executor driver): 
org.apache.comet.CometNativeException: could not cast array of type Int64 to 
arrow_array::array::primitive_array::PrimitiveArray<arrow_array::types::Int32Type>.
   ```
   
   Reg to 
https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala#L1864
   
   The `numBuckets` should Long however currently it is `Int32`
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to