From 2f8377d4617430956d854430904220820b8e5015 Mon Sep 17 00:00:00 2001 From: nick2wang Date: Mon, 28 Mar 2022 18:36:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dclickhouse=E4=B8=8A=E7=BA=BF?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E7=89=88=E6=9C=AC=E5=85=BC=E5=AE=B9=E6=80=A7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/engines/clickhouse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/engines/clickhouse.py b/sql/engines/clickhouse.py index b7d4d0eae8..54e5c14624 100644 --- a/sql/engines/clickhouse.py +++ b/sql/engines/clickhouse.py @@ -195,8 +195,8 @@ def explain_check(self, check_result, db_name=None, line=0, statement=''): sql=statement, affected_rows=0, execute_time=0, ) - # clickhouse版本>=20.6.3才使用explain检查 - if self.server_version >= (20, 6, 3): + # clickhouse版本>=21.1.2 explain ast才支持非select语句检查 + if self.server_version >= (21, 1, 2): explain_result = self.query(db_name=db_name, sql=f"explain ast {statement}") if explain_result.error: check_result.is_critical = True