DESCRIBE TABLE

DESCRIBE TABLE

Synopsis:

  1. DESCRIBE | DESC
  2. [CATALOG identifier]?
  3. [INCLUDE FROZEN]?
  4. [table_identifier |
  5. LIKE pattern]

Catalog (cluster) identifier. Supports wildcards (*).

Whether or not to include frozen indices.

Single table (index or data stream) identifier or double-quoted multi-target pattern.

SQL LIKE pattern matching table names.

Description: DESC and DESCRIBE are aliases to SHOW COLUMNS.

  1. DESCRIBE emp;
  2. column | type | mapping
  3. --------------------+---------------+---------------
  4. birth_date |TIMESTAMP |datetime
  5. dep |STRUCT |nested
  6. dep.dep_id |VARCHAR |keyword
  7. dep.dep_name |VARCHAR |text
  8. dep.dep_name.keyword|VARCHAR |keyword
  9. dep.from_date |TIMESTAMP |datetime
  10. dep.to_date |TIMESTAMP |datetime
  11. emp_no |INTEGER |integer
  12. first_name |VARCHAR |text
  13. first_name.keyword |VARCHAR |keyword
  14. gender |VARCHAR |keyword
  15. hire_date |TIMESTAMP |datetime
  16. languages |TINYINT |byte
  17. last_name |VARCHAR |text
  18. last_name.keyword |VARCHAR |keyword
  19. name |VARCHAR |keyword
  20. salary |INTEGER |integer