HCAT_SCHEMAPROPS
The HCAT_SCHEMAPROPS view shows schema properties for all Db2 Big SQL schemas that are also defined by the Hive catalogs. The contents of this view might not be available if the Hive metastore is unavailable.
When you access the HCAT_SCHEMAPROPS view, you are querying the Hive metastore for each table that is returned. If you filter the set of tables that you want to view by SCHEMANAME, you can improve the access time to this view.
Column | Type | Description |
---|---|---|
SCHEMANAME | VARCHAR(128) | The Db2 Big SQL name of the schema. |
HIVESCHEMA | VARCHAR(128) | The name of the schema as defined in the Hive metastore. |
PROPNAME | VARCHAR(256) | The name of the schema property. |
PROPVALUE | VARCHAR(4000) | The value of the schema property.. |
Examples
Find the properties of the
schemas:
SELECT * FROM SYSHADOOP.HCAT_SCHEMAPROPS;
The result
of the query produces three
schemas:
+------------+------------+--------------------------+-------------------------------------+
| SCHEMANAME | HIVESCHEMA | PROPNAME | PROPVALUE |
+------------+------------+--------------------------+-------------------------------------+
| BIADMIN | biadmin | biginsights.sql.metadata | {"source":"BIGSQL","version":"3.0"} |
| GOSALESDW | gosalesdw | biginsights.sql.metadata | {"source":"BIGSQL","version":"3.0"} |
| MYSCHEMA | myschema | biginsights.sql.metadata | {"source":"BIGSQL","version":"3.0"} |
+------------+------------+--------------------------+-------------------------------------+