How to see the date when the table was created?

2019-04-08 07:45发布

I have created a table couple months ago. Is there any way in HIVE that I can see when was the table created?

show table doesn't give the date creation of the table.

标签: hive hiveql
2条回答
\"骚年 ilove
2楼-- · 2019-04-08 08:33

Execute the command desc formatted <database>.<table_name> on the hive cli. It will show detailed table information similar to

Detailed Table Information

Database:
Owner:
CreateTime:
LastAccessTime:

查看更多
相关推荐>>
3楼-- · 2019-04-08 08:43

You need to run the following command:

describe formatted <your_table_name>;

Or if you need this information about a particular partition:

describe formatted <your_table_name> partition (<partition_field>=<value>);
查看更多
登录 后发表回答