From baa1e3f9f6751cd86342b7cac6a27db2cf1cc7e1 Mon Sep 17 00:00:00 2001 From: dusens <35623865+dusens@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:46:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:[chatdb]=20clickhouse=20occur=20error=20=20?= =?UTF-8?q?AttributeError:=20'ClickhouseConnect=E2=80=A6=20(#1432)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dbgpt/datasource/rdbms/conn_clickhouse.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbgpt/datasource/rdbms/conn_clickhouse.py b/dbgpt/datasource/rdbms/conn_clickhouse.py index 55be461b8..5f785e009 100644 --- a/dbgpt/datasource/rdbms/conn_clickhouse.py +++ b/dbgpt/datasource/rdbms/conn_clickhouse.py @@ -150,6 +150,11 @@ def get_columns(self, table_name: str) -> List[Dict]: for name, column_type, _, _, comment in fields[0] ] + @property + def dialect(self) -> str: + """Return string representation of dialect to use.""" + pass + def get_fields(self, table_name) -> List[Tuple]: """Get column fields about specified table.""" session = self.client