[
https://issues.apache.org/jira/browse/SPARK-52626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk reassigned SPARK-52626:
--------------------------------
Assignee: Bruce Robbins
> Support group by time when wholestage codegen is on
> ---------------------------------------------------
>
> Key: SPARK-52626
> URL: https://issues.apache.org/jira/browse/SPARK-52626
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.1.0
> Reporter: Bruce Robbins
> Assignee: Bruce Robbins
> Priority: Major
> Labels: pull-request-available
>
> Group by a time type is not yet supported when wholestage codegen is on:
> {noformat}
> create or replace temp view v1(t, v) as values
> (time'22:33:01', 1),
> (time'22:33:01', 2),
> (time'00:22:01', 1),
> (null, 3);
> select t, sum(v) from v1 group by t;
> {noformat}
> The above query gets the following error:
> {noformat}
> Failed in [select t, sum(v) from v1 group by t]
> scala.MatchError: TimeType(6) (of class org.apache.spark.sql.types.TimeType)
> at
> org.apache.spark.sql.execution.aggregate.HashMapGenerator.genComputeHash(HashMapGenerator.scala:159)
> ~[spark-sql_2.13-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
> {noformat}
> It does currently work when wholestage codegen is off.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]