You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/physical/stream/StreamPhysicalProcessTableFunction.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -515,7 +515,7 @@ public static Set<ImmutableBitSet> toPartitionColumns(RexCall call) {
515
515
// f(t1 PARTITION BY (k1, k2), t2 PARTITION BY (k3, k4))
Copy file name to clipboardExpand all lines: flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/optimize/program/FlinkChangelogModeInferenceProgram.scala
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1131,16 +1131,19 @@ class FlinkChangelogModeInferenceProgram extends FlinkOptimizeProgram[StreamOpti
1131
1131
* when the upsert key has columns outside sink pk. This differs from batch job's unique key
1132
1132
* inference.
1133
1133
*
1134
-
* <p>A sink without a primary key is satisfied whenever the input carries any upsert key.
1134
+
* <p>A sink without a primary key is satisfied whenever the input carries a real (non-empty)
1135
+
* upsert key; an empty candidate ("at most one row") never counts, even alongside a real one.
Copy file name to clipboardExpand all lines: flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/rules/physical/stream/ChangelogModeInferenceTest.xml
+82Lines changed: 82 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,27 @@ GroupAggregate(groupBy=[cnt], select=[cnt, COUNT_RETRACT(cnt) AS frequency], cha
Copy file name to clipboardExpand all lines: flink-table/flink-table-planner/src/test/resources/org/apache/flink/table/planner/plan/stream/sql/DagOptimizationTest.xml
0 commit comments