合并查询节点:裁判摘录的标题写明是合并查询的结果,不再写成「数据源 合并查询」

This commit is contained in:
ThearchyHelios
2026-10-03 10:25:50 +08:00
parent cd9bf0aedb
commit 0d887efab5
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -350,7 +350,8 @@ def _query_excerpt(alias: str, entry: dict[str, Any], rows: set[int], cols: Iter
total = len(snapshot["rows"])
# 旧形状的台账条目没记数据源:按快照自己记的找遮罩(证据面板同一个口径)
source = entry.get("source") or snapshot.get("source")
head = f"【{alias}】查询结果({entry.get('tool') or '查询'} · 数据源 {source or '—'} · 共 {total} 行)"
head = (f"【{alias}】合并查询结果(共 {total} 行)" if snapshot.get("source") == MERGE_SOURCE
else f"【{alias}】查询结果({entry.get('tool') or '查询'} · 数据源 {source or '—'} · 共 {total} 行)")
sql = _clean(str(snapshot.get("sql") or ""))
lines = [head, f"SQL:{sql[:SQL_CHARS]}{'…' if len(sql) > SQL_CHARS else ''}"]
if snapshot.get("source") == MERGE_SOURCE: