How can I find last modified timestamp for a table in Hive?
问题 I'm trying to fetch last modified timestamp of a table in Hive. 回答1: Please use the below command: show TBLPROPERTIES table_name ('transient_lastDdlTime'); 回答2: Get the transient_lastDdlTime from your Hive table. SHOW CREATE TABLE table_name; Then copy paste the transient_lastDdlTime in below query to get the value as timestamp. SELECT CAST(from_unixtime(your_transient_lastDdlTime_value) AS timestamp); 回答3: You may get the timestamp by executing describe formatted table_name 回答4: you can