The Schema tab

View the databases and tables in your ClickHouse® cluster

The Schema tab lets you view the databases and tables in your ClickHouse® cluster. You can then select a table and see its details.

The schema tab

Figure 1 - The Schema tab

You can click the Show system tables checkbox to see the system tables as well. All of the table names are links. You can also click the filter icon to show only the tables that match a particular value. This example filters the display to show only tables from the mindsdb database:

Filtering databases on a particular value

Figure 2 - Filtering to tables from a single database

You can create as many filters as you want; you could add a filter to the display in Figure 6 to show only tables in the mindsdb database with a MaterializedView engine.

When you’re ready to see more details on a particular table, click on a table name to see the Table Details dialog, which has four subtabs:

The Table Description tab

The Table Description tab has a table of the table’s properties. There are dozens of them, some of which are shown here:

Table description column

Figure 3 - The Table Description tab

The Table Schema tab

The Table Schema tab displays the table’s schema via the CREATE statement that created it:

Table schema column

Figure 4 - The Table Schema tab

Click the Copy to Clipboard link to put the schema on the clipboard.

The Sample Rows tab

The Sample Rows tab shows randomly selected rows from the table:

Sample rows column

Figure 5 - The Sample Rows tab

Be aware that some kinds of tables won’t have any sample records.

The Column Compression tab

Finally, the Column Compression tab shows the details of the columns in the table and how much they have been compressed:

Column compression column

Figure 6 - The Column Compression tab

The key_flags data indicates whether a given column is the partition key, the primary key, the sorting key, and/or the sampling key. In the example in Figure 6, .xx. means this column is in the primary key and the sorting key.