Bruce Robbins created SPARK-52660: ------------------------------------- Summary: 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
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: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org