Xingjun Hao created CARBONDATA-3631:
---------------------------------------
Summary: StringIndexOutOfBoundsException When Inserting Select From a Parquet Table with Empty array/map
Key: CARBONDATA-3631
URL:
https://issues.apache.org/jira/browse/CARBONDATA-3631 Project: CarbonData
Issue Type: Bug
Affects Versions: 1.6.1, 2.0.0
Reporter: Xingjun Hao
Fix For: 2.0.0
sql("insert into datatype_array_parquet values(array())")
sql("insert into datatype_array_carbondata select f from datatype_array_parquet")
{code:java}
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:935)
at java.lang.StringBuilder.substring(StringBuilder.java:76)
at scala.collection.mutable.StringBuilder.substring(StringBuilder.scala:166)
at org.apache.carbondata.streaming.parser.FieldConverter$.objectToString(FieldConverter.scala:77)
at org.apache.carbondata.spark.util.CarbonScalaUtil$.getString(CarbonScalaUtil.scala:71)
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)