[
https://issues.apache.org/jira/browse/ORC-1082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17471582#comment-17471582
]
Dongjoon Hyun commented on ORC-1082:
------------------------------------
Thank you, [~Guiyankuang]!
> FileDump and JsonFileDump do not correctly handle the case where the RowIndex
> does not have column statistics
> -------------------------------------------------------------------------------------------------------------
>
> Key: ORC-1082
> URL: https://issues.apache.org/jira/browse/ORC-1082
> Project: ORC
> Issue Type: Bug
> Components: Java, tools
> Affects Versions: 1.6.12, 1.7.2
> Reporter: Yiqun Zhang
> Priority: Blocker
>
> Before we can get the ColumnStatistics from RowIndex we need to determine
> whether it exists or not.
> entry.getStatistics(); does not return null at any time, and will return a
> default object when it is not set.
>
> {code:java}
> OrcProto.ColumnStatistics colStats = entry.getStatistics();
> if (colStats == null) {
> buf.append("no stats at ");
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)