You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2022/01/10 18:32:00 UTC

[jira] [Resolved] (ORC-1082) FileDump and JsonFileDump do not correctly handle the case where the RowIndex does not have column statistics

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

Dongjoon Hyun resolved ORC-1082.
--------------------------------
    Fix Version/s: 1.7.3
         Assignee: Yiqun Zhang
       Resolution: Fixed

This is resolved via https://github.com/apache/orc/pull/1003

> 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: Improvement
>          Components: Java, tools
>    Affects Versions: 1.8.0, 1.7.3
>            Reporter: Yiqun Zhang
>            Assignee: Yiqun Zhang
>            Priority: Major
>             Fix For: 1.7.3
>
>
> 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)