From 6d17ca0a8bbdc20b71530e8ca5f0c94f7223dc1b Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 18 Feb 2018 08:56:45 +0300 Subject: [PATCH] Return single row for aggregation without keys on empty set: updated tests [#CLICKHOUSE-1920] #51 --- .../00017_in_subquery_with_empty_result.reference | 6 ++++-- .../00181_aggregate_functions_statistics.reference | 9 ++++++++- ...00181_aggregate_functions_statistics_stable.reference | 9 ++++++++- dbms/tests/queries/0_stateless/00321_pk_set.reference | 6 ++++++ 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference b/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference index e25c5780b65..d4d0e64e94c 100644 --- a/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference +++ b/dbms/tests/queries/0_stateless/00017_in_subquery_with_empty_result.reference @@ -9,10 +9,12 @@ "data": [ - + { + "count()": "0" + } ], - "rows": 0, + "rows": 1, "rows_before_limit_at_least": 1000 } diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference index 80cedd76191..4338ddbb043 100644 --- a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference +++ b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics.reference @@ -1,14 +1,21 @@ nan +nan +0 +nan +nan 0 nan 0 0 +nan 0 0 +nan +nan 0 nan 0 0 -0 +nan nan 0 diff --git a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference index ce706690f1a..9e875346c02 100644 --- a/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference +++ b/dbms/tests/queries/0_stateless/00181_aggregate_functions_statistics_stable.reference @@ -1,14 +1,21 @@ inf +inf +0 +inf +inf 0 inf 0 0 +inf 0 0 +inf +inf 0 inf 0 0 -0 +inf inf 0 diff --git a/dbms/tests/queries/0_stateless/00321_pk_set.reference b/dbms/tests/queries/0_stateless/00321_pk_set.reference index d00491fd7e5..2b0a5dc3946 100644 --- a/dbms/tests/queries/0_stateless/00321_pk_set.reference +++ b/dbms/tests/queries/0_stateless/00321_pk_set.reference @@ -1 +1,7 @@ +0 +0 +0 +0 +0 +0 1