[ https://issues.apache.org/jira/browse/HIVE-9271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284496#comment-14284496 ]
Sushanth Sowmyan commented on HIVE-9271: ---------------------------------------- btw, per the hive manual, "ALTER TABLE TOUCH PARTITION" seems to be a way to do this: == Alter Table/Partition Touch ALTER TABLE table_name TOUCH [PARTITION partition_spec]; TOUCH reads the metadata, and writes it back. This has the effect of causing the pre/post execute hooks to fire. An example use case is if you have a hook that logs all the tables/partitions that were modified, along with an external script that alters the files on HDFS directly. Since the script modifies files outside of hive, the modification wouldn't be logged by the hook. The external script could call TOUCH to fire the hook and mark the said table or partition as modified. Also, it may be useful later if we incorporate reliable last modified times. Then touch would update that time as well. == I'm not certain if what this translates to is markPartitionForEvent, because I haven't looked at the impl yet. > Add ability for client to request metastore to fire an event > ------------------------------------------------------------ > > Key: HIVE-9271 > URL: https://issues.apache.org/jira/browse/HIVE-9271 > Project: Hive > Issue Type: New Feature > Components: Metastore > Reporter: Alan Gates > Assignee: Alan Gates > > Currently all events in Hive are fired by the metastore. However, there are > events that only the client fully understands, such as DML operations. There > should be a way for the client to request the metastore to fire a particular > event. -- This message was sent by Atlassian JIRA (v6.3.4#6332)