Github user twalthr commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4199#discussion_r124990474
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/calcite/RelTimeIndicatorConverter.scala
 ---
    @@ -349,6 +350,14 @@ class RelTimeIndicatorConverter(rexBuilder: 
RexBuilder) extends RelShuttle {
                 isTimeIndicatorType(updatedCall.getOperands.get(0).getType) =>
               updatedCall
     
    +        case BasicOperatorTable.TUMBLE_ROWTIME |
    +            BasicOperatorTable.TUMBLE_PROCTIME |
    +            BasicOperatorTable.HOP_ROWTIME |
    +            BasicOperatorTable.HOP_PROCTIME |
    +            BasicOperatorTable.SESSION_ROWTIME |
    +            BasicOperatorTable.SESSION_PROCTIME if 
isTimeIndicatorType(updatedCall.getType) =>
    +          updatedCall
    --- End diff --
    
    No, we need this check because the previous visitCall might changed the 
indicator and the function is called on a non-time attribute now.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to