jinxing64 commented on a change in pull request #1695: [CALCITE-3606] Derive
target table column list by mistake when conver…
URL: https://github.com/apache/calcite/pull/1695#discussion_r361829839
##########
File path:
core/src/main/java/org/apache/calcite/rel/rel2sql/RelToSqlConverter.java
##########
@@ -702,7 +702,7 @@ public Result visit(TableModify modify) {
final SqlInsert sqlInsert =
new SqlInsert(POS, SqlNodeList.EMPTY, sqlTargetTable, sqlSource,
- identifierList(modify.getInput().getRowType().getFieldNames()));
+ identifierList(modify.getTable().getRowType().getFieldNames()));
Review comment:
Thanks, Danny~
I will refine by your comments soon.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services