carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravindra Pesala (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CARBONDATA-752) creating complex type gives exception
Date Wed, 15 Mar 2017 06:11:41 GMT

     [ https://issues.apache.org/jira/browse/CARBONDATA-752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ravindra Pesala resolved CARBONDATA-752.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.1-incubating

> creating complex type gives exception
> -------------------------------------
>
>                 Key: CARBONDATA-752
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-752
>             Project: CarbonData
>          Issue Type: Bug
>          Components: spark-integration
>    Affects Versions: 1.0.0-incubating
>         Environment: spark 2,.1
>            Reporter: anubhav tarar
>            Assignee: anubhav tarar
>            Priority: Trivial
>             Fix For: 1.0.1-incubating
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> using complex type in create table gives me exception
> spark.sql(
>       s"""
>          | CREATE TABLE carbon_table(
>          |    shortField short,
>          |    intField int,
>          |    bigintField long,
>          |    doubleField double,
>          |    stringField string,
>          |    timestampField timestamp,
>          |    decimalField decimal(18,2),
>          |    dateField date,
>          |    charField char(5),
>          |    floatField float,
>          |    complexData array<string>
>          | )
>          | STORED BY 'CARBONDATA'
>          | TBLPROPERTIES('DICTIONARY_INCLUDE'='dateField, charField')
>        """.stripMargin)
> it gives me exception
> Caused by: java.lang.RuntimeException: Unsupported data type: ArrayType(StringType,true)
> Caused by: java.lang.RuntimeException: Unsupported data type: ArrayType(StringType,true)
> at scala.sys.package$.error(package.scala:27)
> at org.apache.carbondata.spark.util.DataTypeConverterUtil$.convertToCarbonTypeForSpark2(DataTypeConverterUtil.scala:61



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message