prasanthj opened a new pull request #1752:
URL: https://github.com/apache/hive/pull/1752


   ### What changes were proposed in this pull request?
   When UpdateInputAccessTimeHook is used as pre-hook, any simple queries on 
transactional table throws exception (full stactrace in 
https://issues.apache.org/jira/browse/HIVE-24501)
   ```
   org.apache.hadoop.hive.ql.metadata.HiveException(Unable to alter table. 
Cannot change stats state for a transactional table default.test without 
providing the transactional write state for verification
   ```
   For updating only access time, the stats of table and partitions does not 
have to be updated. This PR sets environment context to skip updating the stats.
   
   ### Why are the changes needed?
   Bug with exception trace in https://issues.apache.org/jira/browse/HIVE-24501
   
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   Manually on dev cluster.


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to