You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues-all@impala.apache.org by "Tamas Mate (Jira)" <ji...@apache.org> on 2020/04/22 07:14:00 UTC
[jira] [Resolved] (IMPALA-5308) SHOW TABLE STATS for Kudu tables is
confusing
[ https://issues.apache.org/jira/browse/IMPALA-5308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tamas Mate resolved IMPALA-5308.
--------------------------------
Resolution: Fixed
> SHOW TABLE STATS for Kudu tables is confusing
> ---------------------------------------------
>
> Key: IMPALA-5308
> URL: https://issues.apache.org/jira/browse/IMPALA-5308
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Affects Versions: Impala 2.8.0
> Reporter: Matthew Jacobs
> Assignee: Tamas Mate
> Priority: Major
> Labels: kudu
> Fix For: Impala 4.0
>
>
> 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.
> {code}
> [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 |
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscribe@impala.apache.org
For additional commands, e-mail: issues-all-help@impala.apache.org