fix UNION ALL ORDER BY using positional references for ClickHouse
This commit is contained in:
@@ -642,7 +642,7 @@ def get_pattern_analysis() -> dict:
|
|||||||
UNION ALL
|
UNION ALL
|
||||||
SELECT 'C', hand_type_c, count()
|
SELECT 'C', hand_type_c, count()
|
||||||
FROM games WHERE hand_type_c > 0 GROUP BY hand_type_c
|
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": {}}
|
hand_types_by_chair = {"A": {}, "B": {}, "C": {}}
|
||||||
for row in ht_result.result_rows:
|
for row in ht_result.result_rows:
|
||||||
|
|||||||
Reference in New Issue
Block a user