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

Aihua Xu commented on HIVE-12213:
---------------------------------

Thanks [~Aleksei]. I think it makes more sense to make similar changes in the 
following two functions. If {{  fileStatus == null || fileStatus.length == 0}}, 
then we should not update the stats or populate stats.

{noformat}
  public static boolean updateTableStatsFast(Table tbl,
      FileStatus[] fileStatus, boolean newDir, boolean forceRecompute) throws 
MetaException {

 public static void populateQuickStats(FileStatus[] fileStatus, Map<String, 
String> params) {

{noformat}

> Investigating the test failure TestHCatClient.testTableSchemaPropagation
> ------------------------------------------------------------------------
>
>                 Key: HIVE-12213
>                 URL: https://issues.apache.org/jira/browse/HIVE-12213
>             Project: Hive
>          Issue Type: Test
>          Components: Test
>    Affects Versions: 2.0.0
>            Reporter: Aihua Xu
>            Assignee: Aleksei S
>            Priority: Minor
>         Attachments: HIVE-12213.patch
>
>
> The test has been failing for some time with following error.
> {noformat}
> Error Message
> Table after deserialization should have been identical to sourceTable. 
> expected:<[TABLE_PROPERTIES]> but was:<[]>
> Stacktrace
> java.lang.AssertionError: Table after deserialization should have been 
> identical to sourceTable. expected:<[TABLE_PROPERTIES]> but was:<[]>
>       at org.junit.Assert.fail(Assert.java:88)
>       at org.junit.Assert.failNotEquals(Assert.java:743)
>       at org.junit.Assert.assertEquals(Assert.java:118)
>       at 
> org.apache.hive.hcatalog.api.TestHCatClient.testTableSchemaPropagation(TestHCatClient.java:1065)
> {noformat}



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

Reply via email to