xiangyuf commented on code in PR #26379:
URL: https://github.com/apache/flink/pull/26379#discussion_r2043429616


##########
flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/config/OptimizerConfigOptions.java:
##########
@@ -105,6 +105,17 @@ public class OptimizerConfigOptions {
                                     + 
TABLE_OPTIMIZER_REUSE_SUB_PLAN_ENABLED.key()
                                     + " is true.");
 
+    @Documentation.TableOption(execMode = 
Documentation.ExecMode.BATCH_STREAMING)
+    public static final ConfigOption<Boolean> 
TABLE_OPTIMIZER_REUSE_SINK_ENABLED =
+            key("table.optimizer.reuse-sink-enabled")
+                    .booleanType()
+                    .defaultValue(false)
+                    .withDescription(
+                            "When it is true, the optimizer will try to find 
out duplicated table sinks and "
+                                    + "reuse them. This works only when "
+                                    + 
TABLE_OPTIMIZER_REUSE_SUB_PLAN_ENABLED.key()

Review Comment:
   In certain cases, user may only want to reuse source nodes instead of sink 
nodes.



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

Reply via email to