From 2765810817b4025efac583d98c24f2c3a8b4c903 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 8 Apr 2021 18:01:08 +0300 Subject: [PATCH] Update test. --- tests/queries/0_stateless/01798_having_push_down.reference | 1 + tests/queries/0_stateless/01798_having_push_down.sql | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/tests/queries/0_stateless/01798_having_push_down.reference b/tests/queries/0_stateless/01798_having_push_down.reference index f50a5fea8dd..3d6a36b087d 100644 --- a/tests/queries/0_stateless/01798_having_push_down.reference +++ b/tests/queries/0_stateless/01798_having_push_down.reference @@ -1 +1,2 @@ 1 1 2 +1 \N diff --git a/tests/queries/0_stateless/01798_having_push_down.sql b/tests/queries/0_stateless/01798_having_push_down.sql index 3eee9b1a69f..28b97b7f065 100644 --- a/tests/queries/0_stateless/01798_having_push_down.sql +++ b/tests/queries/0_stateless/01798_having_push_down.sql @@ -8,4 +8,10 @@ SELECT sum(c0 = 0), min(c0 + 1), sum(c0 + 2) FROM t_having GROUP BY c0 HAVING c0 = 0 SETTINGS enable_optimize_predicate_expression=0; +SELECT c0 + -1, sum(intDivOrZero(intDivOrZero(NULL, NULL), '2'), intDivOrZero(10000000000., intDivOrZero(intDivOrZero(intDivOrZero(NULL, NULL), 10), NULL))) FROM t_having GROUP BY c0 = 2, c0 = 10, intDivOrZero(intDivOrZero(intDivOrZero(NULL, NULL), NULL), NULL), c0 HAVING c0 = 2 SETTINGS enable_optimize_predicate_expression = 0; + +SELECT sum(c0 + 257) FROM t_having GROUP BY c0 = -9223372036854775808, NULL, -2147483649, c0 HAVING c0 = -9223372036854775808 SETTINGS enable_optimize_predicate_expression = 0; + +SELECT c0 + -2, c0 + -9223372036854775807, c0 = NULL FROM t_having GROUP BY c0 = 0.9998999834060669, 1023, c0 HAVING c0 = 0.9998999834060669 SETTINGS enable_optimize_predicate_expression = 0; + DROP TABLE t_having;