From 4725ef2f74ac95b2decb48cdb1fdb36fe05e5d81 Mon Sep 17 00:00:00 2001 From: Nikita Taranov Date: Sun, 17 Nov 2024 16:28:46 +0100 Subject: [PATCH] fix test --- ...llel_replicas_joins_and_analyzer.reference | 100 ++++++++++-------- 1 file changed, 54 insertions(+), 46 deletions(-) diff --git a/tests/queries/0_stateless/02967_parallel_replicas_joins_and_analyzer.reference b/tests/queries/0_stateless/02967_parallel_replicas_joins_and_analyzer.reference index 765847c0607..ce9ea7f3e53 100644 --- a/tests/queries/0_stateless/02967_parallel_replicas_joins_and_analyzer.reference +++ b/tests/queries/0_stateless/02967_parallel_replicas_joins_and_analyzer.reference @@ -229,43 +229,47 @@ sub2 as (select y, z from tab2 where y != 4), sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y), sub4 as (select z, a from tab3 where z != 8), sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z) -select * from sub5; +select * from sub5 order by all; 0 0 0 0 0 0 -6 6 6 6 0 0 -8 8 8 8 0 0 -10 10 10 10 0 0 -12 12 12 12 12 12 -14 14 14 14 0 0 -4 4 0 0 0 0 -3 3 0 0 0 0 -5 5 0 0 0 0 1 1 0 0 0 0 +3 3 0 0 0 0 +4 4 0 0 0 0 +5 5 0 0 0 0 +6 6 6 6 0 0 7 7 0 0 0 0 +8 8 8 8 0 0 9 9 0 0 0 0 -15 15 0 0 0 0 +10 10 10 10 0 0 11 11 0 0 0 0 +12 12 12 12 12 12 13 13 0 0 0 0 +14 14 14 14 0 0 +15 15 0 0 0 0 explain description=0 with sub1 as (select x, y from tab1 where x != 2), sub2 as (select y, z from tab2 where y != 4), sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y), sub4 as (select z, a from tab3 where z != 8), sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z) -select * from sub5; -Union - Expression - Join +select * from sub5 order by all; +Expression + Sorting + Union Expression - Join + Sorting Expression - ReadFromMemoryStorage - Expression - Expression - ReadFromMergeTree + Join + Expression + Join + Expression + ReadFromMemoryStorage + Expression + Expression + ReadFromMergeTree + Expression + ReadFromMemoryStorage Expression - ReadFromMemoryStorage - Expression - ReadFromRemoteParallelReplicas + ReadFromRemoteParallelReplicas -- -- RIGHT JOIN in sub5: sub5 -> WithMergableStage with sub1 as (select x, y from tab1 where x != 2), @@ -664,45 +668,49 @@ sub2 as (select y, z from tab2 where y != 4), sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y), sub4 as (select z, a from tab3 where z != 8), sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z) -select * from sub5; +select * from sub5 order by all; 0 0 0 0 0 0 -6 6 6 6 0 0 -8 8 8 8 0 0 -10 10 10 10 0 0 -12 12 12 12 12 12 -14 14 14 14 0 0 -4 4 0 0 0 0 -3 3 0 0 0 0 -5 5 0 0 0 0 1 1 0 0 0 0 +3 3 0 0 0 0 +4 4 0 0 0 0 +5 5 0 0 0 0 +6 6 6 6 0 0 7 7 0 0 0 0 +8 8 8 8 0 0 9 9 0 0 0 0 -15 15 0 0 0 0 +10 10 10 10 0 0 11 11 0 0 0 0 +12 12 12 12 12 12 13 13 0 0 0 0 +14 14 14 14 0 0 +15 15 0 0 0 0 explain description=0 with sub1 as (select x, y from tab1 where x != 2), sub2 as (select y, z from tab2 where y != 4), sub3 as (select l.x, l.y, r.y, r.z as z from sub2 r any right join sub1 l on l.y = r.y), sub4 as (select z, a from tab3 where z != 8), sub5 as (select x, l.y, y, z, rr.z, a from sub3 ll any left join sub4 rr on ll.z = rr.z) -select * from sub5; -Union - Expression - Join +select * from sub5 order by all; +Expression + Sorting + Union Expression - Join + Sorting Expression - Expression - ReadFromMergeTree - Expression - Expression - ReadFromMergeTree + Join + Expression + Join + Expression + Expression + ReadFromMergeTree + Expression + Expression + ReadFromMergeTree + Expression + Expression + ReadFromMergeTree Expression - Expression - ReadFromMergeTree - Expression - ReadFromRemoteParallelReplicas + ReadFromRemoteParallelReplicas -- -- RIGHT JOIN in sub5: sub5 -> WithMergableStage with sub1 as (select x, y from tab1 where x != 2),