Description:
Obtain a list of certain table names in the specified Hive database and locations of the corresponding HDFS files.
Syntax:
hive_table
(con,[dbname])
Note:
External library function (See External Library Guide for uses).
It gets a list of certain table names in the specified Hive database and locations of the corresponding HDFS files. List all tables when no option works.
Parameter:
con |
Database connection string. |
dbname |
Database name; return all tables by default. |
Option:
@o |
List ORC tables. |
@p |
List Parquet tables. |
Return value:
Table sequence
Example:
|
|
|
|
|
Connect to a Hive database. |
|
|
Return all tables in hivetest database. |
|
|
Return all tables in myhive database. |
|
|
Return all ORC tables in hivetest database. |
|
|
Return all Parquet tables in myhive database. |
|
|
|