tragicjun commented on a change in pull request #13921:
URL: https://github.com/apache/flink/pull/13921#discussion_r642451406



##########
File path: 
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecRank.java
##########
@@ -207,18 +209,35 @@ public StreamExecRank(
 
         AbstractTopNFunction processFunction;
         if (rankStrategy instanceof RankProcessStrategy.AppendFastStrategy) {
-            processFunction =
-                    new AppendOnlyTopNFunction(
-                            minIdleStateRetentionTime,
-                            maxIdleStateRetentionTime,
-                            inputRowTypeInfo,
-                            sortKeyComparator,
-                            sortKeySelector,
-                            rankType,
-                            rankRange,
-                            generateUpdateBefore,
-                            outputRankNumber,
-                            cacheSize);
+            if (sortFields.length == 1
+                    && inputType.getChildren().get(sortFields[0]).getTypeRoot()
+                            == LogicalTypeRoot.TIMESTAMP_WITHOUT_TIME_ZONE

Review comment:
       sorry, forgot to push the latest commit.




-- 
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]


Reply via email to