[ 
https://issues.apache.org/jira/browse/HIVE-21430?focusedWorklogId=214743&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-214743
 ]

ASF GitHub Bot logged work on HIVE-21430:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Mar/19 12:55
            Start Date: 18/Mar/19 12:55
    Worklog Time Spent: 10m 
      Work Description: maheshk114 commented on pull request #572: HIVE-21430 : 
INSERT into a dynamically partitioned table with autogather stats disabled 
throws a MetaException
URL: https://github.com/apache/hive/pull/572#discussion_r266423668
 
 

 ##########
 File path: ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
 ##########
 @@ -2377,9 +2382,15 @@ private void setStatsPropAndAlterPartitions(boolean 
resetStatistics, Table tbl,
       LOG.debug(sb.toString());
     }
 
+    String validWriteIdList = null;
+    Long writeId = 0L;
 
 Review comment:
   use primitive long type
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

            Worklog Id:     (was: 214743)
            Time Spent: 20m  (was: 10m)
    Remaining Estimate: 47h 40m  (was: 47h 50m)

> INSERT into a dynamically partitioned table with hive.stats.autogather = 
> false throws a MetaException
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-21430
>                 URL: https://issues.apache.org/jira/browse/HIVE-21430
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Ashutosh Bapat
>            Assignee: Ashutosh Bapat
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21430.01.patch, metaexception_repro.patch, 
> org.apache.hadoop.hive.ql.stats.TestStatsUpdaterThread-output.txt
>
>   Original Estimate: 48h
>          Time Spent: 20m
>  Remaining Estimate: 47h 40m
>
> When the test TestStatsUpdaterThread#testTxnDynamicPartitions added in the 
> attached patch is run it throws exception (full logs attached.)
> org.apache.hadoop.hive.metastore.api.MetaException: Cannot change stats state 
> for a transactional table default.simple_stats without providing the 
> transactional write state for verification (new write ID 5, valid write IDs 
> null; current state \{"BASIC_STATS":"true","COLUMN_STATS":{"s":"true"}}; new 
> state null
>  at 
> org.apache.hadoop.hive.metastore.ObjectStore.alterPartitionNoTxn(ObjectStore.java:4328)
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to