Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "Hive/LanguageManual/DDL" page has been changed by PaulYang. http://wiki.apache.org/hadoop/Hive/LanguageManual/DDL?action=diff&rev1=64&rev2=65 -------------------------------------------------- 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 might be if you have a hook that logs all the tables/partitions that were modified. Then, if you have an external script that alters the files on HDFS directly, the modification wouldn't be logged it was performed outside of Hive. The external script could call TOUCH to fire the hook and mark the said table or partition as modified. + 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.