leonardBang commented on a change in pull request #14084:
URL: https://github.com/apache/flink/pull/14084#discussion_r554882968
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/planner/plan/utils/AggFunctionFactory.scala
##########
@@ -480,15 +480,17 @@ class AggFunctionFactory(
val valueType = argTypes(0)
if (needRetraction(index)) {
valueType.getTypeRoot match {
- case TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT | DOUBLE | BOOLEAN
| VARCHAR | DECIMAL =>
+ case TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT | DOUBLE | BOOLEAN
| VARCHAR | DECIMAL |
+ TIME_WITHOUT_TIME_ZONE | DATE | TIMESTAMP_WITHOUT_TIME_ZONE =>
new FirstValueWithRetractAggFunction(valueType)
case t =>
throw new TableException(s"FIRST_VALUE with retract aggregate
function does not " +
s"support type: ''$t''.\nPlease re-check the data type.")
}
} else {
valueType.getTypeRoot match {
- case TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT | DOUBLE | BOOLEAN
| VARCHAR | DECIMAL =>
+ case TINYINT | SMALLINT | INTEGER | BIGINT | FLOAT | DOUBLE | BOOLEAN
| VARCHAR | DECIMAL |
+ TIME_WITHOUT_TIME_ZONE | DATE | TIMESTAMP_WITHOUT_TIME_ZONE =>
Review comment:
Just not supported yet, the type TIME_STAMP_WITH_LOCAL_TIME_ZONE is
rarely used. But I think we should both support them in this version.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]