You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/03/30 23:21:00 UTC

[jira] [Work logged] (HIVE-26096) Select on single column MultiDelimitSerDe table throws AIOBE

     [ https://issues.apache.org/jira/browse/HIVE-26096?focusedWorklogId=750604&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-750604 ]

ASF GitHub Bot logged work on HIVE-26096:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Mar/22 23:20
            Start Date: 30/Mar/22 23:20
    Worklog Time Spent: 10m 
      Work Description: nareshpr opened a new pull request #3158:
URL: https://github.com/apache/hive/pull/3158


   ### What changes were proposed in this pull request?
   To support reading single column from a text table which is delimited by multiple characters.
   
   ### Why are the changes needed?
   Select query fails without this fix.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   testcase is included in the patch


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 750604)
    Remaining Estimate: 0h
            Time Spent: 10m

> 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
>          Time Spent: 10m
>  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)