[
https://issues.apache.org/jira/browse/CARBONDATA-3631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17005201#comment-17005201 ]
Zhichao Zhang commented on CARBONDATA-3631:
--------------------------------------------
[~shenhong] please raise a pr to fix this, thanks.
> 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
> Priority: Minor
> 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)