- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Get all DDL-info from hive metastore
- Labels:
-
Apache Hive
-
Apache Impala
-
Apache Kudu
Created on 01-11-2019 04:45 AM - edited 09-16-2022 07:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, i need to collect information like "create table" statment: table and schema names, columns and its types, comments and so on.
So, i'm able to collect table schema and table names and its location ("TBLS"), columns ("COLUMNS_V2") and table prooperties ("TABLE_PARAMS").
But i can't get any info about PK and partitions. Tables "PARTITIONS", "PARTITION_KEYS", "IDXS", "INDEX_PARAMS" are empty. So, i don't know where can i find information about. Where's it?
Of course, i create table with partitions and primary keys.
Oh, and i should be get type of table too: parquete, textfile or kudu-table. Havn't this info too.
Created 01-11-2019 06:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created 01-16-2019 11:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Same for Indexes.
I haven't be able to find where the primary key being stored, still checking.
Do not think Hive supports default values.
Created 01-16-2019 11:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The same about index - need info about tuple of columns included into index.
