[jira] [Commented] (CARBONDATA-1420) Partition Feature doesn't support a Partition Column of Date Type.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (CARBONDATA-1420) Partition Feature doesn't support a Partition Column of Date Type.

Akash R Nilugal (Jira)

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

Geetika Gupta commented on CARBONDATA-1420:
-------------------------------------------

This issue occurs when we don't have carbon.date.format specified in carbon.properties file

> Partition Feature doesn't support a Partition Column of Date Type.
> ------------------------------------------------------------------
>
>                 Key: CARBONDATA-1420
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-1420
>             Project: CarbonData
>          Issue Type: Bug
>         Environment: spark 2.1
>            Reporter: Neha Bhardwaj
>
> *Create Table :
> DROP TABLE IF EXISTS list_partition_table_date;
> CREATE TABLE list_partition_table_date(shortField SHORT, intField INT, bigintField LONG, doubleField DOUBLE, stringField STRING, timestampField TIMESTAMP, decimalField DECIMAL(18,2), charField CHAR(5), floatField FLOAT, complexData ARRAY<STRING> ) PARTITIONED BY (dateField DATE) STORED BY 'carbondata' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='2010/7/23 , 2011/7/23, 2012/7/23');
> *Output :
> Error: java.lang.RuntimeException:
> BaseSqlParser>>>> null
> CarbonSqlParser>>>> [1.1] failure: identifier matching regex (?i)ALTER expected
> CREATE TABLE list_partition_table_date(shortField SHORT, intField INT, bigintField LONG, doubleField DOUBLE, stringField STRING, timestampField TIMESTAMP, decimalField DECIMAL(18,2), charField CHAR(5), floatField FLOAT, complexData ARRAY<STRING> ) PARTITIONED BY (dateField DATE) STORED BY 'carbondata' TBLPROPERTIES('PARTITION_TYPE'='LIST', 'LIST_INFO'='2010/7/23 , 2011/7/23, 2012/7/23')
> ^ (state=,code=0)



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