mirror of
https://github.com/getredash/redash.git
synced 2026-05-08 00:00:46 -04:00
Clickhouse: do not display INFORMATION_SCHEMA tables (#7489)
As with other query runners, do not show system tables in the schema list.
This commit is contained in:
@@ -77,7 +77,11 @@ class ClickHouse(BaseSQLQueryRunner):
|
||||
self._url = self._url._replace(netloc="{}:{}".format(self._url.hostname, port))
|
||||
|
||||
def _get_tables(self, schema):
|
||||
query = "SELECT database, table, name FROM system.columns WHERE database NOT IN ('system')"
|
||||
query = """
|
||||
SELECT database, table, name
|
||||
FROM system.columns
|
||||
WHERE database NOT IN ('system', 'information_schema', 'INFORMATION_SCHEMA')
|
||||
"""
|
||||
|
||||
results, error = self.run_query(query, None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user