Teradata 有 lastaltertimestamp
的概念,它是最后一次在表上执行 alter table
命令的时间。 lastaltertimestamp
可以查询。 Hive是否有类似的值可以查询?
hdfs dfs -ls/my/hive/file
返回的时间戳不反射(reflect)alter table
命令,所以alter table
不能修改文件支持 Hive 文件。 describe formatted
也不提供 last-alter-timestamp。
谢谢
最佳答案
Hive 将元数据存储到数据库中,因此文件永远不会被修改。
据我所知,在 HIVE 中跟踪的唯一时间戳是 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
您仍然可以将自定义属性添加到表中,以便跟踪您想要的任何内容。
关于hadoop - 如何从 Hive 表中获取 lastaltertimestamp?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40045273/