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/07/23 13:27:54 UTC

[GitHub] [calcite] michaelmior commented on a change in pull request #1305: [CALCITE-3177]Find operator by name and operator.

michaelmior commented on a change in pull request #1305: [CALCITE-3177]Find operator by name and operator.
URL: https://github.com/apache/calcite/pull/1305#discussion_r306316900
 
 

 ##########
 File path: core/src/test/java/org/apache/calcite/plan/RelWriterTest.java
 ##########
 @@ -472,6 +508,40 @@
             + "  LogicalFilter(condition=[=($1, null:INTEGER)])\n"
             + "    LogicalTableScan(table=[[hr, emps]])\n"));
   }
+
+  @Test public void testPlusOperator() {
+    String sql = "select SAL + 10 FROM SALES.EMP";
+    RelRoot relRoot = tester.convertSqlToRel(sql);
+    RelJsonWriter jsonWriter = new RelJsonWriter();
+    relRoot.rel.explain(jsonWriter);
+    String relJson = jsonWriter.asString();
+    System.out.println(relJson);
 
 Review comment:
   This print statement should be removed.

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