You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2019/12/31 06:17:03 UTC

[GitHub] [calcite] jinxing64 commented on a change in pull request #1709: [CALCITE-3653] TableModify convert to Logical in ToLogicalConverter

jinxing64 commented on a change in pull request #1709: [CALCITE-3653] TableModify convert to Logical in ToLogicalConverter
URL: https://github.com/apache/calcite/pull/1709#discussion_r362154843
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rel/logical/ToLogicalConverter.java
 ##########
 @@ -150,6 +151,15 @@ public ToLogicalConverter(RelBuilder relBuilder) {
       return LogicalCalc.create(visit(calc.getInput()), calc.getProgram());
     }
 
+    if (relNode instanceof TableModify) {
+      final TableModify tableModify = (TableModify) relNode;
+      final RelNode input = visit(tableModify.getInput());
+      return new LogicalTableModify(tableModify.getCluster(), tableModify.getTraitSet(),
 
 Review comment:
   Shall we  use `LogicalTableModify#create` ?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services