hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bing Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6727) Table level stats for external tables are set incorrectly
Date Mon, 20 Oct 2014 09:08:34 GMT

     [ https://issues.apache.org/jira/browse/HIVE-6727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bing Li updated HIVE-6727:
--------------------------
    Component/s: Metastore

> Table level stats for external tables are set incorrectly
> ---------------------------------------------------------
>
>                 Key: HIVE-6727
>                 URL: https://issues.apache.org/jira/browse/HIVE-6727
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.13.0, 0.13.1
>            Reporter: Harish Butani
>            Assignee: Bing Li
>             Fix For: 0.14.0
>
>         Attachments: HIVE-6727.1.patch
>
>
> if you do the following:
> {code}
> CREATE EXTERNAL TABLE anaylyze_external (a INT) LOCATION 'data/files/ext_test';
> describe formatted anaylyze_external;
> {code}
> The table level stats are:
> {noformat}
> Table Parameters:
> 	COLUMN_STATS_ACCURATE	true
> 	EXTERNAL            	TRUE
> 	numFiles            	0
> 	numRows             	6
> 	rawDataSize         	6
> 	totalSize           	0
> {noformat}
> numFiles and totalSize is always 0.
> Issue is:
> MetaStoreUtils:updateUnpartitionedTableStatsFast attempts to set table level stats from
FileStatus. But it doesn't account for External tables, it always calls Warehouse.getFileStatusesForUnpartitionedTable



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

Mime
View raw message