Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-5787

Move non-type specific column statistics to ColumnStatistics object in ORC

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Abandoned
    • Affects Version/s: 0.13.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Non-type statistics like min, max, numNulls etc. can be moved to ColumnStatistics class. This avoids ugly checks like

       if (index instanceof IntegerColumnStatistics) {
              return ((IntegerColumnStatistics) index).getMinimum();
            } else if (index instanceof DoubleColumnStatistics) {
              return ((DoubleColumnStatistics) index).getMinimum();
            } else if (index instanceof StringColumnStatistics) {
              return ((StringColumnStatistics) index).getMinimum();
      

        Attachments

          Activity

            People

            • Assignee:
              prasanth_j Prasanth Jayachandran
              Reporter:
              prasanth_j Prasanth Jayachandran
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: