You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Naresh P R (Jira)" <ji...@apache.org> on 2022/04/10 06:42:00 UTC
[jira] [Resolved] (HIVE-26096) Select on single column MultiDelimitSerDe table throws AIOBE
[ https://issues.apache.org/jira/browse/HIVE-26096?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Naresh P R resolved HIVE-26096.
-------------------------------
Fix Version/s: 4.0.0-alpha-2
Resolution: Fixed
> Select on single column MultiDelimitSerDe table throws AIOBE
> ------------------------------------------------------------
>
> Key: HIVE-26096
> URL: https://issues.apache.org/jira/browse/HIVE-26096
> Project: Hive
> Issue Type: Bug
> Reporter: Naresh P R
> Assignee: Naresh P R
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0-alpha-2
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Repro details
>
> {code:java}
> create table test_multidelim(col string)
> ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.MultiDelimitSerDe'
> with serdeproperties('field.delim'='!^') STORED AS TEXTFILE;
> insert into test_multidelim values('aa'),('bb'),('cc'),('dd');
> select * from test_multidelim;
> {code}
> Exception:
> {code:java}
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> at org.apache.hadoop.hive.serde2.lazy.LazyStruct.parseMultiDelimit(LazyStruct.java:303)
> at org.apache.hadoop.hive.serde2.MultiDelimitSerDe.doDeserialize(MultiDelimitSerDe.java:160)
> at org.apache.hadoop.hive.serde2.AbstractEncodingAwareSerDe.deserialize(AbstractEncodingAwareSerDe.java:74)
> at org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:603){code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)