carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "anubhav tarar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CARBONDATA-752) creating complex type gives exception
Date Wed, 08 Mar 2017 11:00:41 GMT
anubhav tarar created CARBONDATA-752:
----------------------------------------

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


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