Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-1082

FileDump and JsonFileDump do not correctly handle the case where the RowIndex does not have column statistics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.0, 1.7.3
    • 1.7.3
    • Java, tools
    • None

    Description

      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.
       

            OrcProto.ColumnStatistics colStats = entry.getStatistics();
            if (colStats == null) {
              buf.append("no stats at ");
            }
      

      Attachments

        Issue Links

          Activity

            People

              Guiyankuang Yiqun Zhang
              Guiyankuang Yiqun Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: