From 16a22daf007823c916e709043778d0d9fe67b755 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Fri, 5 Jun 2020 01:56:11 +0300 Subject: [PATCH] Complete dictionary names in clickhouse-client Since system.tables does not includes all dictionaries (dictionaries declared via configuration files -- *.xml), and since this are those dictionaries we should use regular system.dictionaries.name over system.dictionaries.origin. --- programs/client/Suggest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/client/Suggest.cpp b/programs/client/Suggest.cpp index 8fffbec4fab..4ac5e735fd5 100644 --- a/programs/client/Suggest.cpp +++ b/programs/client/Suggest.cpp @@ -114,6 +114,8 @@ void Suggest::loadImpl(Connection & connection, const ConnectionTimeouts & timeo << " UNION ALL " "SELECT DISTINCT name FROM system.tables LIMIT " << limit_str << " UNION ALL " + "SELECT DISTINCT name FROM system.dictionaries LIMIT " << limit_str + << " UNION ALL " "SELECT DISTINCT name FROM system.columns LIMIT " << limit_str; }