ClickHouseWarehouseCatalog
class ClickHouseWarehouseCatalog(client: Client, val connection: String, val databases: List<String>) : WarehouseCatalog
The WarehouseCatalog of a ClickHouse server, over the host's client-v2 client:
the sources are the tables and views of databases that
system.tableslists, but for the materialized views (their data is in the tables they writeTO), their inner tables andwow_catalogitself;a table's columns are
system.columns', in order;the
wow_catalogrows of a table are those of format 1 in its database'swow_catalog, read withFINAL: a row of the same content written again is one row. A database withoutwow_cataloghas none.
Each statement's result is read as JSONEachRow on Dispatchers.IO.