Update transident_lastDdlTime only if not specified
---------------------------------------------------

                 Key: HIVE-1768
                 URL: https://issues.apache.org/jira/browse/HIVE-1768
             Project: Hive
          Issue Type: Improvement
          Components: Metastore
    Affects Versions: 0.7.0
            Reporter: Paul Yang
            Assignee: Paul Yang


Currently, whenever a table/partition is created/altered, the field 
'transient_lastDdl' time is updated with the current timestamp. For normal 
operations, this is the desired behavior. However for some housekeeping tasks, 
it may be helpful if the user could keep the existing value (or set it to 
something different).

One example where this is useful is if a partition is copied between clusters. 
If the last modified time were kept same after the initial copy, it would be 
easy to know if one partition were overwritten/updated by comparing timestamps.

This patch alters the behavior of create/alter methods in the metastore API to 
update the timestamp only if it is not specified in the object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to