[ 
https://issues.apache.org/jira/browse/GEARPUMP-217?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16170071#comment-16170071
 ] 

ASF GitHub Bot commented on GEARPUMP-217:
-----------------------------------------

Github user manuzhang commented on a diff in the pull request:

    https://github.com/apache/incubator-gearpump/pull/225#discussion_r139435162
  
    --- Diff: 
experiments/sql/src/test/java/org/apache/gearpump/sql/planner/CalciteTest.java 
---
    @@ -80,19 +80,38 @@
       private RexExecutor executor;
       private RelRoot root;
     
    -  public CalciteTest(FrameworkConfig config) {
    -    this.config = config;
    -    this.defaultSchema = config.getDefaultSchema();
    -    this.operatorTable = config.getOperatorTable();
    -    this.parserConfig = config.getParserConfig();
    -    this.state = State.STATE_0_CLOSED;
    -    this.traitDefs = config.getTraitDefs();
    -    this.convertletTable = config.getConvertletTable();
    -    this.executor = config.getExecutor();
    +  @Before
    +  public void setFrameworkConfig() throws ClassNotFoundException, 
SQLException {
    +
    +    Class.forName("org.apache.calcite.jdbc.Driver");
    --- End diff --
    
    Is this used ?


> Add SQL support 
> ----------------
>
>                 Key: GEARPUMP-217
>                 URL: https://issues.apache.org/jira/browse/GEARPUMP-217
>             Project: Apache Gearpump
>          Issue Type: New Feature
>          Components: streaming
>    Affects Versions: 0.8.1
>            Reporter: Manu Zhang
>            Assignee: Buddhi Ayesha
>              Labels: gsoc2017, mentor
>
> SQL support will allow those unfamiliar with Scala/Java to use Gearpump. I 
> propose to build SQL layer with Apache Calcite because
> 1. It has done the hard job of parsing, translating logical plan to physical 
> plan and optimizing.
> 2. It is under active development and has a great community.
> 3. It's proved to be a good solution since Apache Storm, Apache Flink and 
> Apache Samza all build their Streaming SQL with Apache Calcite
> Note SQL here actually means Streaming SQL dialects supported by Calcite 
> (check reference 1 and 2). Please checkout reference 3 for an example 
> implementation. 
> The physical plan will be translated to Gearpump high level DSL.
> References:
> 1. http://www.slideshare.net/julianhyde/streaming-sql
> 2. https://calcite.apache.org/docs/stream.html
> 3. https://github.com/milinda/samza-sql



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to