Shiva created ORC-1873:
--------------------------

             Summary: I'm writing repeated string values to a string column in 
an ORC file using Java and while reading the ORC file back, encounter a 
NullPointerException
                 Key: ORC-1873
                 URL: https://issues.apache.org/jira/browse/ORC-1873
             Project: ORC
          Issue Type: Bug
            Reporter: Shiva
         Attachments: ORCReader.java, ORCWriter.java

When writing the same value to a specific column for every row within a stripe, 
only the first row correctly returns the expected value. All subsequent rows in 
that stripe return {{null}} for the same column.

However, if two or more distinct values are written to the column within the 
same stripe, this issue does not occur — all values are returned as expected.

 

Attached Reader and Writer code files.

 

When I am trying to read all the rows, facing below issue
{code:java}
Row 1  value: value
Exception in thread "main" java.lang.NullPointerException: Cannot read the 
array length because "bytes" is null
    at java.base/java.lang.String.<init>(String.java:1455)
    at com.ge.ORCReader.main(ORCReader.java:38){code}



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

Reply via email to