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

SHOW TABLE STATS for Kudu tables is confusing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.8.0
    • Impala 4.0.0
    • Frontend

    Description

      SHOW TABLE STATS for Kudu tables shows all Kudu tablets and explicitly shows the #rows are -1, because we don't support per-partition or per-tablet stats (see IMPALA-2830).

      However, we do have table statistics (# rows) and that doesn't show up in the SHOW TABLE STATS output, which is confusing. The table stats does show up in the DESCRIBE EXTENDED output.

      [localhost:21000] > show table stats tdata;
      Query: show table stats tdata
      +--------+-----------+----------+----------------------------------+------------+
      | # Rows | Start Key | Stop Key | Leader Replica                   | # Replicas |
      +--------+-----------+----------+----------------------------------+------------+
      | -1     |           | 00000001 | mj-desktop.ca.cloudera.com:31201 | 3          |
      | -1     | 00000001  | 00000002 | mj-desktop.ca.cloudera.com:31202 | 3          |
      | -1     | 00000002  |          | mj-desktop.ca.cloudera.com:31201 | 3          |
      +--------+-----------+----------+----------------------------------+------------+
      Fetched 3 row(s) in 0.02s
      [localhost:21000] > describe extended tdata;
      Query: describe extended tdata
      +------------------------------+-------------------------------------------------+-------------------------------------------+
      | name                         | type                                            | comment                                   |
      +------------------------------+-------------------------------------------------+-------------------------------------------+
      | # col_name                   | data_type                                       | comment                                   |
      |                              | NULL                                            | NULL                                      |
      | id                           | int                                             | NULL                                      |
      ...
                                |
      |                              | NULL                                            | NULL                                      |
      | # Detailed Table Information | NULL                                            | NULL                                      |
      | Database:                    | default                                         | NULL                                      |
      | Owner:                       | mj                                              | NULL                                      |
      | CreateTime:                  | Mon May 08 11:16:29 PDT 2017                    | NULL                                      |
      | LastAccessTime:              | UNKNOWN                                         | NULL                                      |
      | Protect Mode:                | None                                            | NULL                                      |
      | Retention:                   | 0                                               | NULL                                      |
      | Location:                    | hdfs://localhost:20500/test-warehouse/tdata     | NULL                                      |
      | Table Type:                  | MANAGED_TABLE                                   | NULL                                      |
      | Table Parameters:            | NULL                                            | NULL                                      |
      |                              | DO_NOT_UPDATE_STATS                             | true                                      |
      |                              | STATS_GENERATED_VIA_STATS_TASK                  | true                                      |
      |                              | kudu.master_addresses                           | 127.0.0.1                                 |
      |                              | kudu.table_name                                 | impala::default.tdata                     |
      |    ==========>   | numRows                                         | 1500                                      |
      

      Attachments

        Issue Links

          Activity

            People

              tmate Tamas Mate
              mjacobs Matthew Jacobs
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: