You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by haohui <gi...@git.apache.org> on 2015/09/15 02:59:04 UTC

[GitHub] storm pull request: STORM-1045. Parse CREATE TABLE statements.

GitHub user haohui opened a pull request:

    https://github.com/apache/storm/pull/734

    STORM-1045. Parse CREATE TABLE statements.

    This PR supersedes https://github.com/apache/storm/pull/731.
    
    Based on the discussion in STORM-1040, this PR takes the approach to extend the Calcite SQL parser to parse the CREATE TABLE statement. On a very high level it does the following:
    
    * Extract the template of Parser.jj from the calcite jar
    * Instantiate the template with the code in src/codegen
    * Invoke javacc to generate the parser
    
    The approach is similar to the one in Apache Drill.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/haohui/storm STORM-1040

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/storm/pull/734.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #734
    
----
commit e9d12a7162e23615b94a91b16eee05838bdadd55
Author: Haohui Mai <wh...@apache.org>
Date:   2015-09-15T00:52:09Z

    STORM-1045. Parse CREATE TABLE statements.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1045. Parse CREATE TABLE statements.

Posted by harshach <gi...@git.apache.org>.
Github user harshach commented on the pull request:

    https://github.com/apache/storm/pull/734#issuecomment-140273420
  
    +1 . @ptgoetz @revans2 would like merge this into feature branch STORM-1040. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1045. Parse CREATE TABLE statements.

Posted by d2r <gi...@git.apache.org>.
Github user d2r commented on a diff in the pull request:

    https://github.com/apache/storm/pull/734#discussion_r39508506
  
    --- Diff: external/sql/storm-sql-core/pom.xml~ ---
    @@ -0,0 +1,60 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<!--
    + Licensed to the Apache Software Foundation (ASF) under one or more
    + contributor license agreements.  See the NOTICE file distributed with
    + this work for additional information regarding copyright ownership.
    + The ASF licenses this file to You under the Apache License, Version 2.0
    + (the "License"); you may not use this file except in compliance with
    + the License.  You may obtain a copy of the License at
    +
    +     http://www.apache.org/licenses/LICENSE-2.0
    +
    + Unless required by applicable law or agreed to in writing, software
    + distributed under the License is distributed on an "AS IS" BASIS,
    + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + See the License for the specific language governing permissions and
    + limitations under the License.
    +-->
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    +    <modelVersion>4.0.0</modelVersion>
    +
    +    <parent>
    +        <artifactId>storm</artifactId>
    +        <groupId>org.apache.storm</groupId>
    +        <version>0.11.0-SNAPSHOT</version>
    +        <relativePath>../../../pom.xml</relativePath>
    +    </parent>
    +
    +    <artifactId>storm-sql-core</artifactId>
    +
    +    <developers>
    +        <developer>
    +            <id>haohui</id>
    +            <name>Haohui Mai</name>
    +            <email>ricetons@gmail.com</email>
    +        </developer>
    +    </developers>
    +
    +    <dependencies>
    +        <dependency>
    +            <groupId>org.apache.storm</groupId>
    +            <artifactId>storm-core</artifactId>
    +            <version>${project.version}</version>
    +            <scope>provided</scope>
    +        </dependency>
    +        <dependency>
    +            <groupId>org.apache.calcite</groupId>
    +            <artifactId>calcite-core</artifactId>
    +            <version>${calcite.version}</version>
    +        </dependency>
    +        <dependency>
    +            <groupId>junit</groupId>
    +            <artifactId>junit</artifactId>
    +            <scope>test</scope>
    +        </dependency>
    +    </dependencies>
    +    <build>
    +        <sourceDirectory>src/jvm</sourceDirectory>
    +        <testSourceDirectory>src/test</testSourceDirectory>
    +    </build>
    +</project>
    --- End diff --
    
    This looks like an editor swap file.  Should this be removed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] storm pull request: STORM-1045. Parse CREATE TABLE statements.

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/storm/pull/734


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---