guiyanakuang commented on pull request #992:
URL: https://github.com/apache/orc/pull/992#issuecomment-1006398431


   > @guiyanakuang, I just tested your Patch on none-1.orc, looks like it 
doesn't work. Could you help to double-check it?
   
   @wbo4958 In the file nones-1.orc, index.getNumberOfValues() returns 0 
instead of the actual 3 rows of data. So it doesn't work, we need to make sure 
the statistics are consistent with the actual.
   
   It is important to note that none-1.orc contains statistics.
   You can write an orc file without the rowIndex statistics for comparison by 
doing the following
   ```java
   OrcFile.createWriter(new Path(".orc"),
                                            OrcFile.writerOptions(conf)
                                             .rowIndexStride(0)  // Set 
rowIndexStride to 0 to avoid writing rowIndex
                                             .setSchema(schema));
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to