hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-12791) Truncated table stats should return 0 as datasize
Date Wed, 06 Jan 2016 20:30:39 GMT
Pengcheng Xiong created HIVE-12791:
--------------------------------------

             Summary: Truncated table stats should return 0 as datasize
                 Key: HIVE-12791
                 URL: https://issues.apache.org/jira/browse/HIVE-12791
             Project: Hive
          Issue Type: Sub-task
            Reporter: Pengcheng Xiong
            Assignee: Pengcheng Xiong


{code}
create table s as select * from src;
truncate table s;
hive> explain select * from s;
OK
STAGE DEPENDENCIES:
  Stage-0 is a root stage

STAGE PLANS:
  Stage: Stage-0
    Fetch Operator
      limit: -1
      Processor Tree:
        TableScan
          alias: s
          Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
          Select Operator
            expressions: key (type: string), value (type: string)
            outputColumnNames: _col0, _col1
            Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
            ListSink

Time taken: 0.048 seconds, Fetched: 17 row(s)
{code}

should be 
{code}
Num rows: 1 Data size: 0
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message