Skip to content

width_bucket fails: Int32 downcast to Int64Array #3331

@andygrove

Description

@andygrove

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcrashNative engine crash/panic/segfault

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions