Teradata has the concept of lastaltertimestamp, which is the last time an alter table command was executed on a table. lastaltertimestamp can be queried. Does Hive have a similar value that can be queried?
The timestamp returned by hdfs dfs -ls /my/hive/file does not reflect alter table commands, so alter table must not modify the file backing Hive file. describe formatted does not provide a last-alter-timestamp either.
Thanks
Hive stores metadata into a database, so files never get modified.
AFAIK the only timestamp which is tracked in HIVE is transient_lastDdlTime.
When table is created it is the time stamp when the table was created. When any DDL is done it is the last DDL time it tooks
You can still add your custom properties to the table in order to track anything you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With