sohardforaname commented on code in PR #20313: URL: https://github.com/apache/doris/pull/20313#discussion_r1217459306
########## fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/PhysicalPlanTranslator.java: ########## @@ -2221,6 +2222,11 @@ private PlanFragment exchangeToMergeFragment(PlanFragment inputFragment, PlanTra PlanFragment fragment = new PlanFragment(context.nextFragmentId(), mergePlan, dataPartition); inputFragment.setDestination(mergePlan); context.addPlanFragment(fragment); + if (inputFragment.getSink() instanceof OlapTableSink) { + DataSink sink = inputFragment.getSink(); + inputFragment.cleanSink(); + fragment.setSink(sink); + } Review Comment: because it's changed at the same time as the pr, I remove it. -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org