fix: Fix the issue of abnormal remark retrieval in low versions of ClickHouse

This commit is contained in:
junjun
2025-12-15 17:07:20 +08:00
committed by Junjun
parent 69f3003758
commit 6dca923bf0
+1 -1
View File
@@ -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')