diff --git a/tests/queries/0_stateless/03257_reverse_sorting_key.sql b/tests/queries/0_stateless/03257_reverse_sorting_key.sql index 9d2f279026f..0777d101ca1 100644 --- a/tests/queries/0_stateless/03257_reverse_sorting_key.sql +++ b/tests/queries/0_stateless/03257_reverse_sorting_key.sql @@ -17,12 +17,12 @@ select * from x1 where i = 3; select count() from x1 where i between 3 and 10; -select trimLeft(explain) from (explain actions=1 select * from x1 order by i desc limit 5 settings max_threads=1, enable_analyzer=1) where explain ilike '%sort%'; +select trimLeft(explain) from (explain actions=1 select * from x1 order by i desc limit 5) where explain ilike '%sort%' settings max_threads=1, enable_analyzer=1; explain pipeline select * from x1 order by i desc limit 5 settings max_threads=1; select * from x1 order by i desc limit 5; -select trimLeft(explain) from (explain actions=1 select * from x1 order by i limit 5 settings max_threads=1, enable_analyzer=1) where explain ilike '%sort%'; +select trimLeft(explain) from (explain actions=1 select * from x1 order by i limit 5) where explain ilike '%sort%' settings max_threads=1, enable_analyzer=1; explain pipeline select * from x1 order by i limit 5 settings max_threads=1; select * from x1 order by i limit 5; @@ -37,12 +37,12 @@ select * from x2 where j = 1003; select count() from x2 where i between 3 and 10 and j between 1003 and 1008; -select trimLeft(explain) from (explain actions=1 select * from x2 order by i, j desc limit 5 settings max_threads=1, enable_analyzer=1) where explain ilike '%sort%'; +select trimLeft(explain) from (explain actions=1 select * from x2 order by i, j desc limit 5) where explain ilike '%sort%' settings max_threads=1, enable_analyzer=1; explain pipeline select * from x2 order by i, j desc limit 5 settings max_threads=1; select * from x2 order by i, j desc limit 5; -select trimLeft(explain) from (explain actions=1 select * from x2 order by i, j limit 5 settings max_threads=1, enable_analyzer=1) where explain ilike '%sort%'; +select trimLeft(explain) from (explain actions=1 select * from x2 order by i, j limit 5) where explain ilike '%sort%' settings max_threads=1, enable_analyzer=1; explain pipeline select * from x2 order by i, j limit 5 settings max_threads=1; select * from x2 order by i, j limit 5;