【问题标题】:How to find updated date for hive tables?如何查找配置单元表的更新日期?
【发布时间】:2018-07-20 11:21:54
【问题描述】:

如何查找 Hive 表的最后一个 DML 或 DQL 更新时间戳。我可以使用“格式化描述”找到 TransientDDLid。但它有助于获得修改日期。如何确定 Hive 表(托管/外部)的最新更新日期?

【问题讨论】:

标签: hive hiveql


【解决方案1】:

show table extended like 'table_name';

它将给出自纪元以来经过的毫秒数。

复制该号码,删除最后 3 位数字并执行select from_unixtime(no. of milliseconds elapsed since epoch)

例如select from_unixtime(1532442615733);

这将为您提供当前系统时区中那一刻的时间戳。

我猜这就是你要找的……

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多