mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test from Silviu Caragea #2115
This commit is contained in:
parent
43111f2ac9
commit
299d029d35
@ -0,0 +1,5 @@
|
||||
[NULL,'str1','str2'] 1
|
||||
['str1','str2'] 1
|
||||
[] 0
|
||||
[] 0
|
||||
1
|
@ -0,0 +1,9 @@
|
||||
DROP TABLE IF EXISTS test.has_function;
|
||||
|
||||
CREATE TABLE test.has_function(arr Array(Nullable(String))) ENGINE = Memory;
|
||||
INSERT INTO test.has_function(arr) values ([null, 'str1', 'str2']),(['str1', 'str2']), ([]), ([]);
|
||||
|
||||
SELECT arr, has(`arr`, 'str1') FROM test.has_function;
|
||||
SELECT has([null, 'str1', 'str2'], 'str1');
|
||||
|
||||
DROP TABLE test.has_function;
|
Loading…
Reference in New Issue
Block a user