metabase-clickhouse-driver
metabase-clickhouse-driver copied to clipboard
Only show tables and schema for database given in connection settings
Scenario :
- My clickhouse instance has 2 databases
my_lovely_dbandmy_horrid_db - While creating a new database connection via "Admin settings", I have provided a value in "Database" field (e.g.
my_lovely_db) - When I try to admin (e.g. update Data Model) or query (e.g create Questions), it shows both databases as
schemaseven though I have specifiedmy_lovely_dbin connection.
Expected:
- it should only show the
my_lovely_dbschema - i.e. When a database is provided in the connection string, it should only show that as a schema for that connection.
Thanks @nilaymk for the report. The discovery of the schemas is a fragile point, and the concepts "schema", "catalog" or "table" are not used consistently in MetaBase and the ClickHouse JDBC driver. We will have to work around this issue.
This is now fixed. See here: https://github.com/ClickHouse/metabase-clickhouse-driver/issues/121