Skip to main content

SHOW REPOSITORIES

Description​

This statement is used to view the currently created warehouse

Syntax​

SHOW REPOSITORIES;

Return Value​

FieldDescription
RepoIdThe unique identifier (ID) of the repository
RepoNameThe name of the repository
CreateTimeThe creation time of the repository
IsReadOnlyWhether the repository is read-only. false means not read-only, true means read-only
LocationThe root directory used for backing up data in the repository
Broker-
TypeThe repository type, currently supporting S3 and HDFS
ErrMsgThe error message of the repository. Typically NULL if no error occurs

Examples​

View the created repository:

SHOW REPOSITORIES;
+--------+--------------+---------------------+------------+----------+--------+------+--------+
| RepoId | RepoName | CreateTime | IsReadOnly | Location | Broker | Type | ErrMsg |
+--------+--------------+---------------------+------------+----------+--------+------+--------+
| 43411 | example_repo | 2025-01-17 18:50:47 | false | s3://rep1 | - | S3 | NULL |
+--------+--------------+---------------------+------------+----------+--------+------+--------+