From 814de46e136f14a1760f1045f4d08a44e082a42c Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 9 Apr 2024 15:08:03 +0000 Subject: [PATCH] Another one case. --- src/Analyzer/HashUtils.h | 2 +- tests/queries/0_stateless/02203_shebang.bak | 3 + ...up_by_use_nulls_analyzer_crashes.reference | 4 + ...23_group_by_use_nulls_analyzer_crashes.sql | 2 + tests/queries/0_stateless/users.xml | 110 ++++++++++++++++++ 5 files changed, 120 insertions(+), 1 deletion(-) create mode 100755 tests/queries/0_stateless/02203_shebang.bak create mode 100644 tests/queries/0_stateless/users.xml diff --git a/src/Analyzer/HashUtils.h b/src/Analyzer/HashUtils.h index 80f59c1eaaa..77ade7a4705 100644 --- a/src/Analyzer/HashUtils.h +++ b/src/Analyzer/HashUtils.h @@ -36,7 +36,7 @@ inline bool operator!=(const QueryTreeNodeWithHash; -using QueryTreeNodePtrWithHashIgnoreTypes = QueryTreeNodeWithHash; +using QueryTreeNodePtrWithHashIgnoreTypes = QueryTreeNodeWithHash; using QueryTreeNodeRawPtrWithHash = QueryTreeNodeWithHash; using QueryTreeNodeConstRawPtrWithHash = QueryTreeNodeWithHash; diff --git a/tests/queries/0_stateless/02203_shebang.bak b/tests/queries/0_stateless/02203_shebang.bak new file mode 100755 index 00000000000..07686d1aab4 --- /dev/null +++ b/tests/queries/0_stateless/02203_shebang.bak @@ -0,0 +1,3 @@ +#!/usr/bin/clickhouse-local --queries-file + +SELECT 1; diff --git a/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.reference b/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.reference index 4243abb1a1e..17a17484a0c 100644 --- a/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.reference +++ b/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.reference @@ -62,3 +62,7 @@ (9) a b a b +a a +a a + +a a diff --git a/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.sql b/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.sql index 53882f115ba..68710137542 100644 --- a/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.sql +++ b/tests/queries/0_stateless/03023_group_by_use_nulls_analyzer_crashes.sql @@ -19,3 +19,5 @@ SETTINGS group_by_use_nulls = 1 FORMAT Null; SELECT tuple(number + 1) AS x FROM numbers(10) GROUP BY number + 1, toString(x) WITH CUBE settings group_by_use_nulls=1 FORMAT Null; SELECT tuple(tuple(number)) AS x FROM numbers(10) WHERE toString(toUUID(tuple(number), NULL), x) GROUP BY number, (toString(x), number) WITH CUBE SETTINGS group_by_use_nulls = 1 FORMAT Null; + +SELECT materialize('a'), 'a' AS key GROUP BY key WITH CUBE WITH TOTALS SETTINGS group_by_use_nulls = 1; diff --git a/tests/queries/0_stateless/users.xml b/tests/queries/0_stateless/users.xml new file mode 100644 index 00000000000..a199435b42f --- /dev/null +++ b/tests/queries/0_stateless/users.xml @@ -0,0 +1,110 @@ + + + + + + + + + + + + 1 + + + + + + + + + c64c5e4e53ea1a9f1427d2713b3a22bbebe8940bc807adaf654744b1568c70ab + + + + ::/0 + + + + default + + + default + + + 1 + + + + + + + + + + + 3600 + + + 0 + 0 + 0 + 0 + 0 + + + +