alex-plekhanov commented on a change in pull request #9581:
URL: https://github.com/apache/ignite/pull/9581#discussion_r761785885
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/prepare/PlannerHelper.java
##########
@@ -147,7 +147,10 @@ public static IgniteRel optimize(SqlNode sqlNode,
IgnitePlanner planner, IgniteL
if (rel.isDelete())
return rel;
- processNode(rel);
+ if (rel.isMerge()) // MERGE operator always contains modified
table as a source.
Review comment:
Yes, but I don't find a way to determine if "WHEN NOT MATCHED" clause is
omitted. If "WHEN MATCHED" clause is omitted `getUpdateColumnList` is empty,
but for "NOT MATCHED" there are no clues that I can use.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]