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)