Oracle 视图 ALL_HIVE_PART_KEY_COLUMNS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_HIVE_PART_KEY_COLUMNS视图用来查看某个表/分区的Hive表上的所有分区里面的分区键及相关的列信息。
该视图支持以下字段:
TABLE_SCHEMA:属于的模式名称(等同于数据库名)
TABLE_NAME:表名
PART_NAME:分区名称
KEY_COLUMN_NAME:分区键名称
KEY_SEQ:分区键序号
COLUMN_NAME:分区附带的列名称
使用ALL_HIVE_PART_KEY_COLUMNS视图:
例如,查询带有dps这个分区键的emp表的分区键和列名:
SELECT table_schema,table_name,key_column_name,key_seq,column_name
FROM all_hive_part_key_columns
WHERE table_name = ’emp’ AND part_name LIKE ‘dps%’;
官方英文解释
ALL_HIVE_PART_KEY_COLUMNS provides information about all Hive table partition columns accessible to the current user in the database.
Related Views
DBA_HIVE_PART_KEY_COLUMNSprovides information about all Hive table partition columns in the database.USER_HIVE_PART_KEY_COLUMNSprovides information about all Hive table partition columns owned by the current user in the database.
| Column | Datatype | NULL | Description |
|---|---|---|---|
|
| Hadoop cluster name | |
|
| Hive database where the Hive table resides | |
|
| Hive table name | |
|
| Owner of the Hive table | |
|
| Partition column name | |
|
| Partition column type | |
|
| Partition column position in the Hive partition specification | |
|
| Equivalent Oracle data type of the Hive column |
See Also:
“DBA_HIVE_PART_KEY_COLUMNS”
“USER_HIVE_PART_KEY_COLUMNS”
编辑:568数据
标签:分区,视图,名称,英文,字段