mirror of https://github.com/citusdata/citus.git
Add missing ORDER BY in a CTE (#3282)
Otherwise, the query output might not be consistent.pull/3285/head
parent
90568a87d0
commit
fecf61ef1f
|
@ -393,7 +393,7 @@ cte2 AS (
|
||||||
)
|
)
|
||||||
SELECT user_id, time, value_1, min(count) FROM cte2_1_1 GROUP BY 1, 2, 3 ORDER BY 1,2,3
|
SELECT user_id, time, value_1, min(count) FROM cte2_1_1 GROUP BY 1, 2, 3 ORDER BY 1,2,3
|
||||||
)
|
)
|
||||||
SELECT * FROM cte2_1 LIMIT 3 OFFSET 2
|
SELECT * FROM cte2_1 ORDER BY 1,2,3,4 LIMIT 3 OFFSET 2
|
||||||
)
|
)
|
||||||
SELECT * FROM cte2;
|
SELECT * FROM cte2;
|
||||||
user_id | time | value_1 | min
|
user_id | time | value_1 | min
|
||||||
|
|
|
@ -321,7 +321,7 @@ cte2 AS (
|
||||||
)
|
)
|
||||||
SELECT user_id, time, value_1, min(count) FROM cte2_1_1 GROUP BY 1, 2, 3 ORDER BY 1,2,3
|
SELECT user_id, time, value_1, min(count) FROM cte2_1_1 GROUP BY 1, 2, 3 ORDER BY 1,2,3
|
||||||
)
|
)
|
||||||
SELECT * FROM cte2_1 LIMIT 3 OFFSET 2
|
SELECT * FROM cte2_1 ORDER BY 1,2,3,4 LIMIT 3 OFFSET 2
|
||||||
)
|
)
|
||||||
SELECT * FROM cte2;
|
SELECT * FROM cte2;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue