From 1ab0690eb88358bd111d89d749470f93c7f6186b Mon Sep 17 00:00:00 2001 From: Igor Nikonov Date: Thu, 7 Dec 2023 10:03:37 +0000 Subject: [PATCH] Fix test: distinct in order with analyzer --- .../0_stateless/02676_distinct_reading_in_order_analyzer.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/queries/0_stateless/02676_distinct_reading_in_order_analyzer.sql b/tests/queries/0_stateless/02676_distinct_reading_in_order_analyzer.sql index a280a384c40..f9ff1eed111 100644 --- a/tests/queries/0_stateless/02676_distinct_reading_in_order_analyzer.sql +++ b/tests/queries/0_stateless/02676_distinct_reading_in_order_analyzer.sql @@ -5,4 +5,5 @@ set allow_experimental_analyzer=1; create table t (a UInt64, b UInt64) engine=MergeTree() order by (a); insert into t select number % 2, number from numbers(10); +set optimize_distinct_in_order=1; select trimBoth(explain) from (explain pipeline select distinct a from t) where explain like '%InOrder%';