[ 
https://issues.apache.org/jira/browse/IMPALA-5308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17062041#comment-17062041
 ] 

ASF subversion and git services commented on IMPALA-5308:
---------------------------------------------------------

Commit 7dd13f72784514a59f82c9a7a5e2250503dbfaf0 in impala's branch 
refs/heads/master from Tamas Mate
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=7dd13f7 ]

IMPALA-5308: Resolve confusing Kudu SHOW TABLE STATS output

This change modifies the output of the SHOW TABLE STATS and SHOW
PARTITIONS for Kudu tables.
 - PARTITIONS: the #Row column has been removed
 - TABLE STATS: instead of showing partition informations it returns a
 resultset similar to HDFS table stats, #Rows, #Partitions, Size, Format
 and Location

Example outputs can be seen in the doc changes.

Testing:
* kudu_stats.test is modified to verify the new result set
* kudu_partition_ddl.test is modified to verify the new partitions style
* Updated unit test with the new error message

Change-Id: Ice4b8df65f0a53fe14b8fbe35d82c9887ab9a041
Reviewed-on: http://gerrit.cloudera.org:8080/15199
Reviewed-by: Thomas Tauber-Marshall <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>


> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to