You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by ravipesala <gi...@git.apache.org> on 2016/12/29 04:16:29 UTC

[GitHub] incubator-carbondata pull request #478: [CARBONDATA-577]Fix carbon commands ...

GitHub user ravipesala opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/478

    [CARBONDATA-577]Fix carbon commands in spark shell

    With this PR, user can create CarbonSesion inside the spark shell and executes the carbon commands,
    
    ```
    scala> import org.apache.spark.sql.SparkSession
    
    scala> import org.apache.spark.sql.CarbonSession._
    
    scala> val carbon = SparkSession.builder().master("local").appName("CarbonShellExample").enableHiveSupport().getOrCreateCarbonSession()
    
    scala> carbon.sql(
          s"""
             | CREATE TABLE carbon_table5(
             |    shortField short,
             |    intField int,
             |    bigintField long,
             |    doubleField double,
             |    stringField string,
             |    timestampField timestamp,
             |    decimalField decimal(18,2),
             |    dateField date,
             |    charField char(5)
             | )
             | STORED BY 'carbondata'
             | TBLPROPERTIES('DICTIONARY_INCLUDE'='dateField, charField')
           """.stripMargin)
    ```

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

    $ git pull https://github.com/ravipesala/incubator-carbondata shell-bug

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

    https://github.com/apache/incubator-carbondata/pull/478.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 #478
    
----
commit e8d6547d9859e29f9bb919f06c0a3d9145bb4145
Author: ravipesala <ra...@gmail.com>
Date:   2016-12-29T04:03:02Z

    Fix using carbon commands in spark shell

----


---
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] incubator-carbondata issue #478: [CARBONDATA-577]Fix carbon commands in spar...

Posted by CarbonDataQA <gi...@git.apache.org>.
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/478
  
    Build Success with Spark 1.5.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/367/



---
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] incubator-carbondata issue #478: [CARBONDATA-577]Fix carbon commands in spar...

Posted by chenliang613 <gi...@git.apache.org>.
Github user chenliang613 commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/478
  
    LGTM


---
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] incubator-carbondata pull request #478: [CARBONDATA-577]Fix carbon commands ...

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

    https://github.com/apache/incubator-carbondata/pull/478


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