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/27 03:24:14 UTC

[GitHub] [calcite] danny0405 commented on a change in pull request #1691: [CALCITE-3631] Support SQL hints for Calc

danny0405 commented on a change in pull request #1691: [CALCITE-3631] Support SQL hints for Calc
URL: https://github.com/apache/calcite/pull/1691#discussion_r361572391
 
 

 ##########
 File path: core/src/main/java/org/apache/calcite/rel/logical/LogicalCalc.java
 ##########
 @@ -124,4 +138,9 @@ public static LogicalCalc create(final RelNode input,
     }
     variableSet.addAll(vuv.variables);
   }
+
+  @Override public RelNode withHints(List<RelHint> hintList) {
+    return new LogicalCalc(getCluster(), traitSet,
+        ImmutableList.copyOf(hintList), input, program);
+  }
 
 Review comment:
   We do not need invoke `ImmutableList.copyOf(` here, the constructor of `LogicalCalc` already did that. But in order of code safety, i think we can keep it here.

----------------------------------------------------------------
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