feat:优化增量执行、工具调用容错与评测体系
This commit is contained in:
@@ -87,8 +87,13 @@ def run_query(
|
||||
)
|
||||
|
||||
|
||||
def connect(tables: Mapping[str, Path]) -> duckdb.DuckDBPyConnection:
|
||||
"""建好视图并锁定的连接;列概况也用它,和模型查询看到的数据一致"""
|
||||
def connect(
|
||||
tables: Mapping[str, Path], *, threads: int = THREADS
|
||||
) -> duckdb.DuckDBPyConnection:
|
||||
"""建好视图并锁定的连接;列概况也用它,和模型查询看到的数据一致
|
||||
|
||||
threads 只给解析子进程算列概况时放宽,模型写的查询一律用 THREADS
|
||||
"""
|
||||
connection = duckdb.connect(
|
||||
":memory:",
|
||||
config={
|
||||
@@ -96,7 +101,7 @@ def connect(tables: Mapping[str, Path]) -> duckdb.DuckDBPyConnection:
|
||||
"autoload_known_extensions": False,
|
||||
"python_enable_replacements": False,
|
||||
"memory_limit": MEMORY_LIMIT,
|
||||
"threads": THREADS,
|
||||
"threads": threads,
|
||||
},
|
||||
)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user