carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chenerlu <...@git.apache.org>
Subject [GitHub] carbondata pull request #877: [CARBONDATA-951] create table ddl can specify ...
Date Thu, 11 May 2017 07:58:54 GMT
Github user chenerlu commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/877#discussion_r115926114
  
    --- Diff: examples/spark/src/main/scala/org/apache/carbondata/examples/CarbonExample.scala
---
    @@ -48,14 +49,25 @@ object CarbonExample {
     
         // Perform a query
         cc.sql("""
    +           SELECT country, id, phonetype AS amount
    +           FROM t3
    +           WHERE country IN ('china','france')
    +           """).show(100)
    +    cc.sql("""
                SELECT country, count(salary) AS amount
                FROM t3
                WHERE country IN ('china','france')
                GROUP BY country
                """).show()
    -
    +    var start = System.currentTimeMillis()
    +    cc.sql("""
    +           SELECT country, id, phonetype AS amount
    +           FROM t3
    +           WHERE country IN ('france')
    +           """).show(1000000)
    +    print("query time: " + (System.currentTimeMillis() - start))
         // Drop table
    -    cc.sql("DROP TABLE IF EXISTS t3")
    +    // cc.sql("DROP TABLE IF EXISTS t3")
    --- End diff --
    
    Should drop table at last.


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

Mime
View raw message