Description
The width_bucket.sql SQL file test crashes with a native type mismatch error.
Error
CometNativeException: Comet Internal Error: Failed to downcast to Int64Array, actual type: Int32
at org.apache.comet.Native.columnarToRowConvert(Native Method)
The native width_bucket implementation produces an Int32 output array, but the columnar-to-row converter expects Int64. The output schema type needs to match what Spark expects.
Reproduction
Run CometSqlFileTestSuite — the width_bucket.sql test fails with a SparkException wrapping the native downcast error.
Description
The
width_bucket.sqlSQL file test crashes with a native type mismatch error.Error
The native
width_bucketimplementation produces anInt32output array, but the columnar-to-row converter expectsInt64. The output schema type needs to match what Spark expects.Reproduction
Run
CometSqlFileTestSuite— thewidth_bucket.sqltest fails with aSparkExceptionwrapping the native downcast error.