Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2136

Partitions with TINYINT partition columns will always have 0 estimated rows after compute stats

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 2.2
    • Impala 2.3.0
    • None
    • None

    Description

      If a table has a TINYINT partition column, COMPUTE STATS will always set the number of rows for all partitions to be 0 (the table-wide row count remains accurate).

      This is because a bug in PrintVal() in hs2-util.cc does not correctly cast 8-bit values to integers, causing stringstream::operator<< to interpret them as characters and printing an ASCII character rather than a string representation of an integer.

      Attachments

        Activity

          People

            henryr Henry Robinson
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: