Skip to content

[complex types] Unsupported data type org.apache.spark.sql.Row #1611

@andygrove

Description

@andygrove

Describe the bug

Spark supports grouping by structs in aggregates, but Comet fails the following error:

org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 1296.0 failed 1 times, most recent failure: Lost task 0.0 in stage 1296.0 (TID 1312) (192.168.86.37 executor driver): java.lang.UnsupportedOperationException: Unsupported data type org.apache.spark.sql.Row
	at org.apache.spark.sql.catalyst.expressions.SpecializedGettersReader.read(SpecializedGettersReader.java:83)
	at org.apache.spark.sql.catalyst.expressions.UnsafeRow.get(UnsafeRow.java:334)
	at org.apache.spark.sql.Dataset.$anonfun$rdd$2(Dataset.scala:3736)

Steps to reproduce

See repro test test("aggregate group by single column") in #1610

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions