You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "zoucao (Jira)" <ji...@apache.org> on 2021/12/29 08:19:00 UTC

[jira] [Created] (FLINK-25476) CharType lost in the creation of MaxAggFunction & MinAggFunction

zoucao created FLINK-25476:
------------------------------

             Summary: CharType lost in the creation of MaxAggFunction & MinAggFunction
                 Key: FLINK-25476
                 URL: https://issues.apache.org/jira/browse/FLINK-25476
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Planner
    Affects Versions: 1.15.0
            Reporter: zoucao


CharType lost in AggFunctionFactory#createMinAggFunction(Retract) and 
AggFunctionFactory#createMaxAggFunction(Retract&nonRetract).
If execute 
{code:java}
SELECT Max('a') ...
{code}
 , The following exception will throw.

----

Caused by: org.apache.flink.table.api.TableException: Max aggregate function does not support type: ''CHAR''.
Please re-check the data type.
	at org.apache.flink.table.planner.plan.utils.AggFunctionFactory.createMaxAggFunction(AggFunctionFactory.scala:395)
	at org.apache.flink.table.planner.plan.utils.AggFunctionFactory.createAggFunction(AggFunctionFactory.scala:76)
	at org.apache.flink.table.planner.plan.utils.AggregateUtil$.$anonfun$transformToAggregateInfoList$1(AggregateUtil.scala:444)





--
This message was sent by Atlassian Jira
(v8.20.1#820001)