From 430235bd1b3a00ea71e1c5c8d5c1e272ba7656a8 Mon Sep 17 00:00:00 2001 From: seoibiubiu <63412731+seoibiubiu@users.noreply.github.com> Date: Thu, 24 Apr 2025 22:44:46 +0800 Subject: [PATCH] Fix Clickhouse SQL syntax error for RdbmsSummary (#2651) --- .../dbgpt-ext/src/dbgpt_ext/datasource/rdbms/conn_clickhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dbgpt-ext/src/dbgpt_ext/datasource/rdbms/conn_clickhouse.py b/packages/dbgpt-ext/src/dbgpt_ext/datasource/rdbms/conn_clickhouse.py index dad151153..719550ce5 100644 --- a/packages/dbgpt-ext/src/dbgpt_ext/datasource/rdbms/conn_clickhouse.py +++ b/packages/dbgpt-ext/src/dbgpt_ext/datasource/rdbms/conn_clickhouse.py @@ -181,7 +181,7 @@ class ClickhouseConnector(RDBMSConnector): session = self.client _query_sql = f""" - SELECT name AS table, primary_key, from system.tables where + SELECT name AS table, primary_key from system.tables where database ='{self.client.database}' and table = '{table_name}' """ with session.query_row_block_stream(_query_sql) as stream: