You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Sushanth Sowmyan (JIRA)" <ji...@apache.org> on 2015/09/17 01:27:47 UTC

[jira] [Commented] (HIVE-11852) numRows and rawDataSize table properties are not replicated

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

Sushanth Sowmyan commented on HIVE-11852:
-----------------------------------------

The issue here is that there is a MoveTask that's done as part of the import process which issues an alter_table which nukes the stats that were just created. On digging further, I discovered a couple of other cases that would result in the same stats squishing behaviour.

Patch attached to fix them, and a .q file to test them.

> numRows and rawDataSize table properties are not replicated
> -----------------------------------------------------------
>
>                 Key: HIVE-11852
>                 URL: https://issues.apache.org/jira/browse/HIVE-11852
>             Project: Hive
>          Issue Type: Bug
>          Components: Import/Export
>    Affects Versions: 1.2.1
>            Reporter: Paul Isaychuk
>            Assignee: Sushanth Sowmyan
>
> numRows and rawDataSize table properties are not replicated when exported for replication and re-imported.
> {code}
> Table drdbnonreplicatabletable.vanillatable has different TblProps from drdbnonreplicatabletable.vanillatable expected [{numFiles=1, numRows=2, totalSize=560, rawDataSize=440}] but found [{numFiles=1, totalSize=560}]
> java.lang.AssertionError: Table drdbnonreplicatabletable.vanillatable has different TblProps from drdbnonreplicatabletable.vanillatable expected [{numFiles=1, numRows=2, totalSize=560, rawDataSize=440}] but found [{numFiles=1, totalSize=560}]
> {code}



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