Bruce Robbins created SPARK-52699:
-------------------------------------
Summary: Support aggregating TIME type in interpreted mode
Key: SPARK-52699
URL: https://issues.apache.org/jira/browse/SPARK-52699
Project: Spark
Issue Type: Sub-task
Components: SQL
Affects Versions: 4.1.0
Reporter: Bruce Robbins
Aggregating the TIME type in interpreted mode is not yet supported. Consider
the below query:
{noformat}
set spark.sql.codegen.factoryMode=NO_CODEGEN;
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}
It gets the following error:
{noformat}
Exception in task 0.0 in stage 0.0 (TID 0)
org.apache.spark.SparkUnsupportedOperationException:
[UNSUPPORTED_CALL.WITHOUT_SUGGESTION] Cannot call the method "update" of the
class "org.apache.spark.sql.catalyst.expressions.UnsafeRow". SQLSTATE: 0A000
at
org.apache.spark.SparkUnsupportedOperationException$.apply(SparkException.scala:266)
~[spark-common-utils_2.13-4.1.0-SNAPSHOT.jar:4.1.0-SNAPSHOT]
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]