-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b01d7bb
commit c3b7aba
Showing
2 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
dbms/tests/queries/0_stateless/00662_array_has_nullable.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,56 @@ | ||
1 | ||
1 | ||
0 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
1 | ||
0 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
1 | ||
0 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 | ||
1 | ||
1 | ||
0 |
72 changes: 72 additions & 0 deletions
72
dbms/tests/queries/0_stateless/00662_array_has_nullable.sql
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,72 @@ | ||
SELECT has(['a', 'b'], 'a'); | ||
SELECT has(['a', 'b'], 'b'); | ||
SELECT has(['a', 'b'], 'c'); | ||
SELECT has(['a', 'b'], NULL); | ||
|
||
SELECT has(['a', NULL, 'b'], 'a'); | ||
SELECT has(['a', NULL, 'b'], 'b'); | ||
SELECT has(['a', NULL, 'b'], 'c'); | ||
SELECT has(['a', NULL, 'b'], NULL); | ||
|
||
SELECT has(materialize(['a', 'b']), 'a'); | ||
SELECT has(materialize(['a', 'b']), 'b'); | ||
SELECT has(materialize(['a', 'b']), 'c'); | ||
SELECT has(materialize(['a', 'b']), NULL); | ||
|
||
SELECT has(materialize(['a', NULL, 'b']), 'a'); | ||
SELECT has(materialize(['a', NULL, 'b']), 'b'); | ||
SELECT has(materialize(['a', NULL, 'b']), 'c'); | ||
SELECT has(materialize(['a', NULL, 'b']), NULL); | ||
|
||
SELECT has(['a', 'b'], materialize('a')); | ||
SELECT has(['a', 'b'], materialize('b')); | ||
SELECT has(['a', 'b'], materialize('c')); | ||
|
||
SELECT has(['a', NULL, 'b'], materialize('a')); | ||
SELECT has(['a', NULL, 'b'], materialize('b')); | ||
SELECT has(['a', NULL, 'b'], materialize('c')); | ||
|
||
SELECT has(materialize(['a', 'b']), materialize('a')); | ||
SELECT has(materialize(['a', 'b']), materialize('b')); | ||
SELECT has(materialize(['a', 'b']), materialize('c')); | ||
|
||
SELECT has(materialize(['a', NULL, 'b']), materialize('a')); | ||
SELECT has(materialize(['a', NULL, 'b']), materialize('b')); | ||
SELECT has(materialize(['a', NULL, 'b']), materialize('c')); | ||
|
||
|
||
SELECT has([111, 222], 111); | ||
SELECT has([111, 222], 222); | ||
SELECT has([111, 222], 333); | ||
SELECT has([111, 222], NULL); | ||
|
||
SELECT has([111, NULL, 222], 111); | ||
SELECT has([111, NULL, 222], 222); | ||
SELECT has([111, NULL, 222], 333); | ||
SELECT has([111, NULL, 222], NULL); | ||
|
||
SELECT has(materialize([111, 222]), 111); | ||
SELECT has(materialize([111, 222]), 222); | ||
SELECT has(materialize([111, 222]), 333); | ||
SELECT has(materialize([111, 222]), NULL); | ||
|
||
SELECT has(materialize([111, NULL, 222]), 111); | ||
SELECT has(materialize([111, NULL, 222]), 222); | ||
SELECT has(materialize([111, NULL, 222]), 333); | ||
SELECT has(materialize([111, NULL, 222]), NULL); | ||
|
||
SELECT has([111, 222], materialize(111)); | ||
SELECT has([111, 222], materialize(222)); | ||
SELECT has([111, 222], materialize(333)); | ||
|
||
SELECT has([111, NULL, 222], materialize(111)); | ||
SELECT has([111, NULL, 222], materialize(222)); | ||
SELECT has([111, NULL, 222], materialize(333)); | ||
|
||
SELECT has(materialize([111, 222]), materialize(111)); | ||
SELECT has(materialize([111, 222]), materialize(222)); | ||
SELECT has(materialize([111, 222]), materialize(333)); | ||
|
||
SELECT has(materialize([111, NULL, 222]), materialize(111)); | ||
SELECT has(materialize([111, NULL, 222]), materialize(222)); | ||
SELECT has(materialize([111, NULL, 222]), materialize(333)); |