davidradl commented on code in PR #26966:
URL: https://github.com/apache/flink/pull/26966#discussion_r2329695596


##########
flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/logical/FlinkLogicalMultiJoin.java:
##########
@@ -207,7 +211,29 @@ public RelNode convert(final RelNode rel) {
                     multiJoin.getOuterJoinConditions(),
                     multiJoin.getJoinTypes(),
                     multiJoin.getPostJoinFilter(),
-                    Collections.emptyList());
+                    hints);
+        }
+
+        private List<RelHint> normalizeStateTtlHints(final List<RelHint> 
originalHints) {
+            final boolean containsValidStateTtlHint =
+                    originalHints.stream()
+                            .filter(hint -> 
hint.hintName.equals(STATE_TTL.getHintName()))
+                            .anyMatch(
+                                    hint ->
+                                            hint.listOptions.stream()
+                                                    .anyMatch(
+                                                            option ->
+                                                                    
!option.equals(
+                                                                            
StateTtlHint
+                                                                               
     .NO_STATE_TTL)));
+
+            if (containsValidStateTtlHint) {
+                return originalHints;
+            } else {
+                return originalHints.stream()
+                        .filter(hint -> 
!hint.hintName.equals(STATE_TTL.getHintName()))

Review Comment:
   I am curious whether this needs to be a case insensitive check. 



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