Details
-
Task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.15.0
-
None
Description
https://drill.apache.org/docs/querying-the-information-schema/
Currently documentation states that SCHEMA table contains only several columns:
The SCHEMATA table contains the CATALOG_NAME and SCHEMA_NAME columns. To allow maximum flexibility inside BI tools, the only catalog that Drill supports is DRILL.
In reality it contains far more columns (especially TYPE and IS_MUTABLE) which can be considered to be documented:
drill (information_schema)>select * from schemata; +---------------+----------------------+---------------+----------------+-------------+ | CATALOG_NAME | SCHEMA_NAME | SCHEMA_OWNER | TYPE | IS_MUTABLE | +---------------+----------------------+---------------+----------------+-------------+ | DRILL | cp.default | <owner> | file | NO | | DRILL | dfs.default | <owner> | file | NO | | DRILL | dfs.myschemainitcap | <owner> | file | YES |