0

我已经像这样使用“alter table”更改了 Hive 中的表。

alter table tbl_name add columns (...);
alter table tbl_name change col1 col2 string comment 'test';

TBLSHive Metastore 数据库的表中,它只记录了该表的创建时间。如何获取alter table的更新时间。

4

1 回答 1

0

使用以下命令

desc 格式化的 tbl_name

并寻找last_modified_time

它会告诉你上次更新的时间。它将在 unixtimestamp 中。

于 2017-08-22T08:11:08.563 回答