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

Column stats for CHAR and VARCHAR not populated by COMPUTE STATS.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.0.1, Impala 2.1
    • Impala 2.2
    • None

    Description

      Even if COMPUTE STATS is run, the column stats for CHAR/VARCHAR column remain unpopulated. Follow these steps for a repro:

      create table test (x int, y varchar(20), z char(10));
      insert into test values(1, cast('aaa' as varchar(20)), cast('bbb' as char(10)));
      compute stats test;
      [localhost:21000] > show column stats test;
      Query: show column stats test
      +--------+-------------+------------------+--------+----------+----------+
      | Column | Type        | #Distinct Values | #Nulls | Max Size | Avg Size |
      +--------+-------------+------------------+--------+----------+----------+
      | x      | INT         | 1                | -1     | 4        | 4        |
      | y      | VARCHAR(20) | -1               | -1     | -1       | -1       |
      | z      | CHAR(10)    | -1               | -1     | 10       | 10       |
      +--------+-------------+------------------+--------+----------+----------+
      

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: