You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/11/24 10:26:41 UTC

[GitHub] [shardingsphere] junwen12221 edited a comment on issue #8284: [New feature] Federated SQL query and Query optimization are going to sail out.

junwen12221 edited a comment on issue #8284:
URL: https://github.com/apache/shardingsphere/issues/8284#issuecomment-732801708


   @tristaZero @guimingyue 
   
   Look at the example below
   
   `https://github.com/zabetak/calcite/blob/c7646fa6d3054b9e6b9a800e08d18f3cc89922e4/core/src/test/java/org/apache/calcite/examples/foodmart/java/EndToEndExampleEnumerable.java`
   
   on line 127 ,you can replace the sql parser
   on line  156 ,can replace RelNode with RelBuilder
   on line 165-179,it is optimizer code.
   after 187 ,the plan runs.
   so you need a converter that builds RelNode  from ShardingSphere Parser or convert ShardingSphere AST  to RelNode or ShardingSphere AST to org.apache.calcite.sql.SqlNode.


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