SHOW TABLE CREATION

Description

  1. 该语句用于展示指定的 Iceberg Database 建表任务的执行情况
  2. 语法:
  3. SHOW TABLE CREATION [FROM db_name] [LIKE table_name_wild];
  4. 说明:
  5. 1. 使用说明
  6. 1) 如果不指定 db_name,使用当前默认 db
  7. 2) 如果使用 LIKE,则会匹配表名中包含 table_name_wild 的建表任务
  8. 2. 各列含义说明
  9. 1) Database: 数据库名称
  10. 2) Table:要创建表的名称
  11. 3) Status:表的创建状态,`success`/`fail`
  12. 4) CreateTime:执行创建该表任务的时间
  13. 5) Error Msg:创建表失败的错误信息,如果成功,则为空。

example

  1. 1. 展示默认 Iceberg db 中所有的建表任务
  2. SHOW TABLE CREATION;
  3. mysql> show table creation ;
  4. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  5. | Database | Table | Status | Create Time | Error Msg |
  6. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  7. | default_cluster:iceberg_db | logs_1 | success | 2022-01-24 19:42:45 | |
  8. | default_cluster:iceberg_db | logs | fail | 2022-01-24 19:42:45 | Cannot convert Iceberg type[list<string>] to Doris type. |
  9. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  10. 2. 展示指定 Iceberg db 中的建表任务
  11. SHOW TABLE CREATION FROM example_db;
  12. mysql> show table creation from iceberg_db;
  13. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  14. | Database | Table | Status | Create Time | Error Msg |
  15. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  16. | default_cluster:iceberg_db | logs_1 | success | 2022-01-24 19:42:45 | |
  17. | default_cluster:iceberg_db | logs | fail | 2022-01-24 19:42:45 | Cannot convert Iceberg type[list<string>] to Doris type. |
  18. +----------------------------+--------+---------+---------------------+----------------------------------------------------------+
  19. 3. 展示指定 Iceberg db 中的建表任务,表名中包含字符串 "log" 的任务
  20. SHOW TABLE CREATION FROM example_db LIKE '%log%';
  21. mysql> show table creation from iceberg_db like "%1";
  22. +----------------------------+--------+---------+---------------------+-----------+
  23. | Database | Table | Status | Create Time | Error Msg |
  24. +----------------------------+--------+---------+---------------------+-----------+
  25. | default_cluster:iceberg_db | logs_1 | success | 2022-01-24 19:42:45 | |
  26. +----------------------------+--------+---------+---------------------+-----------+

keyword

  1. SHOW,TABLE CREATION