xuyangzhong opened a new pull request #18375:
URL: https://github.com/apache/flink/pull/18375


   ## What is the purpose of the change
   
   Now function MAX and MIN does not support the type CHAR and will throw the 
exception like following:
   
   `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 pr aims to add the support in MAX and MIN with both retract and 
non-retract stream data.
   
   ## Brief change log
   
     - *support CHAR in MAX (Retract&nonRetract).*
     - *support CHAR in MIN (Retract)*
     - *add some test cases*
   
   
   ## Verifying this change
   
   Some  test cases are added to verify this change.
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): no
     - The public API, i.e., is any changed class annotated with 
`@Public(Evolving)`: no
     - The serializers: no
     - The runtime per-record code paths (performance sensitive): no
     - Anything that affects deployment or recovery: JobManager (and its 
components), Checkpointing, Kubernetes/Yarn, ZooKeeper: no
     - The S3 file system connector: no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? no
     - If yes, how is the feature documented?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to