From 838caad557dd9dd91312e6b393a19232a042ab64 Mon Sep 17 00:00:00 2001 From: junjun Date: Mon, 15 Dec 2025 17:05:49 +0800 Subject: [PATCH] fix: Fix the issue of abnormal remark retrieval in low versions of ClickHouse --- backend/apps/db/db_sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/apps/db/db_sql.py b/backend/apps/db/db_sql.py index 17ee7c0e..8a87af58 100644 --- a/backend/apps/db/db_sql.py +++ b/backend/apps/db/db_sql.py @@ -103,7 +103,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = '' version = int(db_version.split('.')[0]) if version < 22: return """ - SELECT name, null as comment + SELECT name, '' as comment FROM system.tables WHERE database = :param AND engine NOT IN ('Dictionary')