Returns a table with a row for each table in the current database, with columns containing information for each table as listed below.

Syntax

SHOW TABLES;

Returns

The returned table has the following columns.

Column nameData TypeDescription
table_nameTEXTThe name of the table.
stateTEXTThe current table state.
table_typeTEXTOne of FACT, DIMENSION, or EXTERNAL.
column_countINTEGERThe number of columns in the table.
primary_indexTEXTAn ordered array of the column names comprising the primary index definition, if applicable.
schemaTEXTThe text of the SQL statement that created the table.
number_of_rowsINTEGERThe number of rows in the table.
sizeDOUBLE PRECISIONThe compressed size of the table.
size_uncompressedDOUBLE PRECISIONThe uncompressed size of the table.
compression_ratioDOUBLE PRECISIONThe compression ratio (<size_uncompressed>/<size>).
number_of_tabletsINTEGERThe number of tablets comprising the table.

Example

The following example returns information about tables in the database queried:

SHOW TABLES;
table_namestatetable_typecolumn_countprimary_indexschemanumber_of_rowssizesize_uncompressedcompression_rationumber_of_tablets
ex_gamesValidEXTERNAL1”CREATE EXTERNAL TABLE IF NOT EXISTS ""ex_games"" (""src"" text NOT NULL)""OBJECT_PATTERN"" = ‘help_center_assets/firebolt_sample_dataset/games.json’ ""TYPE"" = (""JSON"" ""PARSE_AS_TEXT"" = ‘TRUE’) ""URL"" = ‘s3://firebolt-publishing-public/help_center_assets/firebolt_sample_dataset/‘“00.00 B0.00 B00