From 5906d0b54526db1833f1b244c904d5a530c16878 Mon Sep 17 00:00:00 2001 From: zhang2014 Date: Wed, 30 Jan 2019 14:59:31 +0800 Subject: [PATCH] ISSUES-3885 fix test failure --- .../queries/0_stateless/00808_not_optimize_predicate.reference | 2 +- dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference index 5f2ee7a3369..1454dfe443b 100644 --- a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference +++ b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.reference @@ -1,7 +1,7 @@ -------ENABLE OPTIMIZE PREDICATE------- 2000-01-01 1 test string 1 1 1 2000-01-01 1 test string 1 1 1 -2000-01-01 1 test string 1 1 1 +1 -------FORCE PRIMARY KEY------- -------CHECK STATEFUL FUNCTIONS------- 1 a 0 diff --git a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql index 7cb1b8df148..f0b29f413ff 100644 --- a/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql +++ b/dbms/tests/queries/0_stateless/00808_not_optimize_predicate.sql @@ -11,7 +11,7 @@ SET enable_optimize_predicate_expression = 1; SELECT '-------ENABLE OPTIMIZE PREDICATE-------'; SELECT * FROM (SELECT * FROM test.test FINAL) WHERE id = 1; SELECT * FROM (SELECT * FROM test.test LIMIT 1) WHERE id = 1; -SELECT * FROM (SELECT * FROM test.test GROUP BY id LIMIT 1 BY id) WHERE id = 1; +SELECT * FROM (SELECT id FROM test.test GROUP BY id LIMIT 1 BY id) WHERE id = 1; SET force_primary_key = 1;