chunweilei commented on a change in pull request #1138: [CALCITE-1581] UDTF 
like in hive
URL: https://github.com/apache/calcite/pull/1138#discussion_r270263078
 
 

 ##########
 File path: 
core/src/main/java/org/apache/calcite/sql/validate/SqlValidatorImpl.java
 ##########
 @@ -1320,6 +1331,175 @@ protected SqlNode performUnconditionalRewrites(
     return node;
   }
 
+  private SqlNode performHiveUdtfRewrite(SqlNode node) {
+    Map<SqlSelect, UdtfInfo> selectUdtfInfo = new HashMap<>();
+     SqlNode rewirte = performHiveUdtfRewriteInternal(node, selectUdtfInfo);
+   //  System.out.println("before:\n" + node.toString() +" \nafter:\n" + 
rewirte.toString());
+    return node;
+  }
+
+  private SqlNode performHiveUdtfRewriteInternal(SqlNode current,
+                                                 Map<SqlSelect, UdtfInfo> 
selectUdtfInfos) {
+    System.out.println("start rewrite:" + current);
+
 
 Review comment:
   We don't print anything in general.

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