godfreyhe commented on a change in pull request #7993: [FLINK-11932]
[table-planner-blink] Add support for generating optimized logical plan for
'select * from mytable'
URL: https://github.com/apache/flink/pull/7993#discussion_r266284125
##########
File path:
flink-table/flink-table-planner-blink/src/main/scala/org/apache/flink/table/plan/util/FlinkRelOptUtil.scala
##########
@@ -211,4 +247,62 @@ object FlinkRelOptUtil {
}
}
+ /**
+ * Merge two MiniBatchInterval as a new one.
+ *
+ * The Merge Logic: MiniBatchMode: (R: rowtime, P: proctime, N: None), I:
Interval
+ * Possible values:
+ * - (R, I = 0): operators that require watermark (window excluded).
+ * - (R, I > 0): window / operators that require watermark with minibatch
enabled.
+ * - (P, I > 0): unbounded agg with minibatch enabled.
+ * - (N, I = 0): no operator requires watermark, minibatch disabled
+ * ------------------------------------------------
+ * | A | B | merged result
+ * ------------------------------------------------
+ * | R, I_1 == 0 | R, I_2 | R, gcd(I_1, I_2)
+ * ------------------------------------------------
+ * | R, I_1 == 0 | P, I_2 | R, I_2
+ * ------------------------------------------------
+ * | R, I_1 > 0 | R, I_2 | R, gcd(I_1, I_2)
+ * ------------------------------------------------
+ * | R, I_1 > 0 | P, I_2 | R, I_1
+ * ------------------------------------------------
+ * | P, I_1 | R, I_2 == 0 | R, I_1
+ * ------------------------------------------------
+ * | P, I_1 | R, I_2 > 0 | R, I_2
+ * ------------------------------------------------
+ * | P, I_1 | P, I_2 > 0 | P, I_1
+ * ------------------------------------------------
+ */
+ def mergeMiniBatchInterval(
Review comment:
ok
----------------------------------------------------------------
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]
With regards,
Apache Git Services