[
https://issues.apache.org/jira/browse/SPARK-52660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk resolved SPARK-52660.
------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 51354
[https://github.com/apache/spark/pull/51354]
> Support aggregation of time type when aggregate operator splits code
> --------------------------------------------------------------------
>
> Key: SPARK-52660
> URL: https://issues.apache.org/jira/browse/SPARK-52660
> 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
> Fix For: 4.1.0
>
>
> The following query gets an wholestage codegen compilation error:
> {noformat}
> create or replace temp view v1(col1) as values
> (time'22:33:01'),
> (time'01:33:01'),
> (null);
> select max(col1), min(col1) from v1;
> {noformat}
> The error is:
> {noformat}
> Failed to compile the generated Java code.
> org.codehaus.commons.compiler.CompileException: File 'generated.java', Line
> 63, Column 19: Cannot compare types "long" and "java.lang.Object"
> {noformat}
> In the end, the query succeeds after falling back to no wholestage codegen.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]