feat:修改nl2sql功能

This commit is contained in:
2026-09-14 10:57:48 +08:00
parent a7f9e182a4
commit 67d5cfc2b8
15 changed files with 206 additions and 54 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ def apply_row_scope(sql: str, permission: dict, data_scope: dict | None) -> str:
continue
values = _values(data_scope, scope["type"])
condition = exp.In(
this=exp.column(scope["column"]),
this=exp.column(scope["column"], table=table.alias_or_name),
expressions=[exp.Literal.number(value) for value in values],
)
statement = statement.where(condition)