[
https://issues.apache.org/jira/browse/HIVE-12791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16140110#comment-16140110
]
BELUGA BEHR commented on HIVE-12791:
------------------------------------
I believe this is still an issue. Please confirm and re-open [~pxiong]
> 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.4.14#64029)