[
https://issues.apache.org/jira/browse/SPARK-52699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk resolved SPARK-52699.
------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
Issue resolved by pull request 51395
[https://github.com/apache/spark/pull/51395]
> 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
> Assignee: Bruce Robbins
> Priority: Major
> Fix For: 4.1.0
>
>
> 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]