You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Seonggon Namgung (Jira)" <ji...@apache.org> on 2023/05/15 09:59:00 UTC

[jira] [Created] (HIVE-27344) ORC RecordReaderImpl throws NPE when close() is called from the constructor

Seonggon Namgung created HIVE-27344:
---------------------------------------

             Summary: 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: 4.0.0-alpha-2, 3.1.3
            Reporter: Seonggon Namgung
            Assignee: Seonggon Namgung


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)