carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mayunSaicmotor <...@git.apache.org>
Subject [GitHub] carbondata pull request #1103: [WIP] Implement range interval partition
Date Mon, 10 Jul 2017 09:48:46 GMT
Github user mayunSaicmotor commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1103#discussion_r126377929
  
    --- Diff: examples/spark2/src/main/scala/org/apache/carbondata/examples/CarbonPartitionExample.scala
---
    @@ -113,14 +113,31 @@ object CarbonPartitionExample {
            | 'LIST_INFO'='(China,United States),UK ,japan,(Canada,Russia), South Korea ')
            """.stripMargin)
     
    +    // range interval partition
    +    spark.sql("DROP TABLE IF EXISTS t7")
    +
    +    spark.sql("""
    +                | CREATE TABLE IF NOT EXISTS t7
    +                | (
    +                | vin String,
    +                | phonenumber Long,
    +                | country String,
    +                | area String
    +                | )
    +                | PARTITIONED BY (logdate Timestamp)
    +                | STORED BY 'carbondata'
    +                | TBLPROPERTIES('PARTITION_TYPE'='RANGE_INTERVAL',
    +                | 'RANGE_INTERVAL_INFO'='2014/01/01, 2015/01/01, month')
    +              """.stripMargin)
    +
         // show tables
         spark.sql("SHOW TABLES").show()
     
         // drop table
         spark.sql("DROP TABLE IF EXISTS t0")
         spark.sql("DROP TABLE IF EXISTS t1")
         spark.sql("DROP TABLE IF EXISTS t3")
    -    spark.sql("DROP TABLE IF EXISTS t5")
    +    spark.sql("DROP TABLE IF EXISTS t7")
    --- End diff --
    
    where is the drop table for t5?


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