-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bad code; added generic implementation for "arrayReverse" funct…
…ion; added test [#CLICKHOUSE-3]
- Loading branch information
1 parent
7d6ffff
commit 73e3a7b
Showing
3 changed files
with
93 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
dbms/tests/queries/0_stateless/00758_array_reverse.reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
['\0',NULL] | ||
[NULL,123,NULL] | ||
[NULL,'Hello'] | ||
['world','Hello'] | ||
['world',NULL,'Hello'] | ||
[NULL,NULL,NULL] | ||
[[' '],[''],[]] | ||
[[NULL],[''],[]] | ||
[(nan,'World',[NULL]),(1,'Hello',[])] | ||
\N | ||
[] | ||
[[[[]]]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
SELECT reverse([NULL, '\0']); | ||
SELECT reverse([NULL, 123, NULL]); | ||
SELECT reverse([toFixedString('Hello', 5), NULL]); | ||
SELECT reverse(['Hello', 'world']); | ||
SELECT reverse(['Hello', NULL, 'world']); | ||
SELECT reverse([NULL, NULL, NULL]); | ||
SELECT reverse([[], [''], [' ']]); | ||
SELECT reverse([[], [''], [NULL]]); | ||
SELECT reverse([(1, 'Hello', []), (nan, 'World', [NULL])]); | ||
SELECT reverse(NULL); | ||
SELECT reverse([]); | ||
SELECT reverse([[[[]]]]); |