[ 
https://issues.apache.org/jira/browse/HIVE-27344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Denys Kuzmenko resolved HIVE-27344.
-----------------------------------
    Fix Version/s: 4.0.0-beta-1
       Resolution: Fixed

> ORC RecordReaderImpl throws NPE when close() is called from the constructor
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-27344
>                 URL: https://issues.apache.org/jira/browse/HIVE-27344
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 3.1.3, 4.0.0-alpha-2
>            Reporter: Seonggon Namgung
>            Assignee: Seonggon Namgung
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0-beta-1
>
>
> org.apache.hadoop.hive.ql.io.orc.RecordReaderImpl throws NullPointerException 
> when the constructor of its super class org.apache.orc.impl.RecordReaderImpl 
> calls this.close().
> close() mutates the field 'batch', which is initialized after super class 
> constructor is done. Therefore, we need a null check of field 'batch' in 
> close(). 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to