Skip to content

[complex types] count distinct fails with native scan #1613

@andygrove

Description

@andygrove

Describe the bug

The following SQL fails with the new native scan enabled:

SELECT count(distinct complex_col) FROM t

Error:

None.get
java.util.NoSuchElementException: None.get
	at scala.None$.get(Option.scala:529)
	at scala.None$.get(Option.scala:527)
	at org.apache.comet.serde.QueryPlanSerde$.$anonfun$operator2Proto$31(QueryPlanSerde.scala:2479)
	at scala.collection.immutable.List.map(List.scala:293)
	at org.apache.comet.serde.QueryPlanSerde$.operator2Proto(QueryPlanSerde.scala:2479)
	at org.apache.comet.CometSparkSessionExtensions$CometExecRule.org$apache$comet$CometSparkSessionExtensions$CometExecRule$$transform1$1(CometSparkSessionExtensions.scala:359)

Steps to reproduce

No response

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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions