From 0fc4776424d106138b9d933135db9a6fe06cc356 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Tue, 20 Apr 2021 13:32:52 +0300 Subject: [PATCH] Added another test case --- .../01813_distributed_scalar_subqueries_alias.reference | 2 ++ .../0_stateless/01813_distributed_scalar_subqueries_alias.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.reference b/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.reference index aa47d0d46d4..5565ed6787f 100644 --- a/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.reference +++ b/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.reference @@ -1,2 +1,4 @@ 0 +1 0 +1 diff --git a/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.sql b/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.sql index 30d1501effe..d2d90e7ab1d 100644 --- a/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.sql +++ b/tests/queries/0_stateless/01813_distributed_scalar_subqueries_alias.sql @@ -8,9 +8,11 @@ INSERT INTO data VALUES (0, 0); SET prefer_localhost_replica = 1; SELECT a / (SELECT sum(number) FROM numbers(10)) FROM data_distributed; +SELECT a < (SELECT 1) FROM data_distributed; SET prefer_localhost_replica = 0; SELECT a / (SELECT sum(number) FROM numbers(10)) FROM data_distributed; +SELECT a < (SELECT 1) FROM data_distributed; DROP TABLE data_distributed; DROP TABLE data;