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

    https://github.com/apache/flink/pull/4199#discussion_r124990940
  
    --- 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 --
    
    But you are right, it checks the return type and not the operands which is 
a bug.


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