From 3e5fc7bc84f6cedafa4ffa9f62c64db4b2516e64 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Mon, 5 Oct 2026 15:14:03 +0800 Subject: [PATCH] =?UTF-8?q?SQL=20=E8=AF=AD=E4=B9=89=EF=BC=9A=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=20=5FUsage.=5Fbases=20=E9=87=8C=E6=B2=A1=E7=94=A8?= =?UTF-8?q?=E5=88=B0=E7=9A=84=20import=EF=BC=88pyflakes=20=E6=8A=A5?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E7=AC=AC=202=20=E8=BD=AE=E5=B0=B1=E7=95=99?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/data/sql_semantics.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/app/data/sql_semantics.py b/backend/app/data/sql_semantics.py index 70129abf..517c549e 100644 --- a/backend/app/data/sql_semantics.py +++ b/backend/app/data/sql_semantics.py @@ -6012,8 +6012,6 @@ class _Usage: return "cond" def _bases(self, col: Any, depth: int) -> list[tuple[str | None, str]]: - from sqlglot import exp - if depth > 16 or self.resolver is None: return [(None, col.name)] item = self.resolver.source_of.get(id(col))