fix UNION ALL ORDER BY using positional references for ClickHouse

This commit is contained in:
2026-02-25 22:56:53 +05:00
parent 2b8e3dd456
commit d8ec792a88

View File

@@ -642,7 +642,7 @@ def get_pattern_analysis() -> dict:
UNION ALL
SELECT 'C', hand_type_c, count()
FROM games WHERE hand_type_c > 0 GROUP BY hand_type_c
ORDER BY chair, ht
ORDER BY 1, 2
""")
hand_types_by_chair = {"A": {}, "B": {}, "C": {}}
for row in ht_result.result_rows: