zstan commented on code in PR #3393:
URL: https://github.com/apache/calcite/pull/3393#discussion_r1340984163
##########
core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:
##########
@@ -3801,13 +3806,17 @@ private static boolean all(SqlCall call) {
protected RelNode convertInsert(SqlInsert call) {
RelOptTable targetTable = getTargetTable(call);
+ callStack.push(call);
+
final RelDataType targetRowType =
validator().getValidatedNodeType(call);
assert targetRowType != null;
RelNode sourceRel =
convertQueryRecursive(call.getSource(), true, targetRowType).project();
RelNode massagedRel = convertColumnList(call, sourceRel);
+ callStack.pop();
Review Comment:
Merge sql syntax will also transform into SqlInsert operand and since i use
it only for insertion - no other places are covered by now, thus no need to
append 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]