[fix](doc) show catalog example output fix (#29150)
Co-authored-by: Rohit Satardekar <rohitrs1983@gmail.com>
This commit is contained in:
@ -98,12 +98,12 @@ For more information about Hive, please see [Hive](./hive.md).
|
||||
|
||||
```
|
||||
mysql> SHOW CATALOGS;
|
||||
+-----------+-------------+----------+
|
||||
| CatalogId | CatalogName | Type |
|
||||
+-----------+-------------+----------+
|
||||
| 10024 | hive | hms |
|
||||
| 0 | internal | internal |
|
||||
+-----------+-------------+----------+
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| CatalogId | CatalogName | Type | IsCurrent | CreateTime | LastUpdateTime | Comment |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| 10024 | hive | hms | yes | 2023-12-25 16:11:41.687 | 2023-12-25 20:43:18 | NULL |
|
||||
| 0 | internal | internal | | UNRECORDED | NULL | Doris internal catalog |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
```
|
||||
|
||||
> Syntax Help: [SHOW CATALOGS](https://doris.apache.org/docs/dev/sql-manual/sql-reference/Show-Statements/SHOW-CATALOGS/)
|
||||
@ -321,4 +321,4 @@ CREATE CATALOG es PROPERTIES (
|
||||
|
||||
### Auto Refresh
|
||||
|
||||
Auto-refresh currently only supports [Hive Catalog](./hive.md).
|
||||
Auto-refresh currently only supports [Hive Catalog](./hive.md).
|
||||
|
||||
@ -58,23 +58,23 @@ Return result:
|
||||
|
||||
```sql
|
||||
SHOW CATALOGS;
|
||||
+-----------+-------------+----------+-----------+
|
||||
| CatalogId | CatalogName | Type | IsCurrent |
|
||||
+-----------+-------------+----------+-----------+
|
||||
| 130100 | hive | hms | |
|
||||
| 0 | internal | internal | yes |
|
||||
+-----------+-------------+----------+-----------+
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| CatalogId | CatalogName | Type | IsCurrent | CreateTime | LastUpdateTime | Comment |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| 130100 | hive | hms | | 2023-12-25 16:11:41.687 | 2023-12-25 20:43:18 | NULL |
|
||||
| 0 | internal | internal | yes | UNRECORDED | NULL | Doris internal catalog |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
```
|
||||
|
||||
2. Fuzzy query by catalog name
|
||||
|
||||
```sql
|
||||
SHOW CATALOGS LIKE 'hi%';
|
||||
+-----------+-------------+----------+-----------+
|
||||
| CatalogId | CatalogName | Type | IsCurrent |
|
||||
+-----------+-------------+----------+-----------+
|
||||
| 130100 | hive | hms | |
|
||||
+-----------+-------------+----------+-----------+
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| CatalogId | CatalogName | Type | IsCurrent | CreateTime | LastUpdateTime | Comment |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
| 130100 | hive | hms | | 2023-12-25 16:11:41.687 | 2023-12-25 20:43:18 | NULL |
|
||||
+-----------+-------------+----------+-----------+-------------------------+---------------------+------------------------+
|
||||
```
|
||||
|
||||
### Keywords
|
||||
|
||||
Reference in New Issue
Block a user