godfreyhe commented on code in PR #20393: URL: https://github.com/apache/flink/pull/20393#discussion_r936612711
########## flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/FlinkRexUtil.scala: ########## @@ -585,6 +585,50 @@ object FlinkRexUtil { } false } + + /** + * Returns whether a given expression is deterministic in streaming scenario, differs from + * calcite's [[RexUtil]], it considers both non-deterministic and dynamic functions. + */ + def isDeterministicInStreaming(e: RexNode): Boolean = try { Review Comment: I think it also can be used in batch, because they all generate non-deterministic result -- 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