yanlin-Lynn commented on a change in pull request #1565: [CALCITE-3481] Support 
convert TableFunctionScan to SqlNode
URL: https://github.com/apache/calcite/pull/1565#discussion_r343566331
 
 

 ##########
 File path: 
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java
 ##########
 @@ -112,13 +113,16 @@ private Sql sql(String sql) {
   private static Planner getPlanner(List<RelTraitDef> traitDefs,
       SqlParser.Config parserConfig, SchemaPlus schema,
       SqlToRelConverter.Config sqlToRelConf, Program... programs) {
-    final SchemaPlus rootSchema = Frameworks.createRootSchema(true);
+    final MockSqlOperatorTable operatorTable =
+        new MockSqlOperatorTable(SqlStdOperatorTable.instance());
+    MockSqlOperatorTable.addRamp(operatorTable);
 
 Review comment:
   Add this to using `DEDUP`

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

Reply via email to