mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
0510911559
* Add's hasSubstr array function * Add's example in the english doc of hasSubStr * Updates conditions to avoid prematurely calling isEqual * Remove feathericons Authored-by: Ryad ZENINE <ryad.zenine@contentsquare.com>
33 lines
991 B
SQL
33 lines
991 B
SQL
select hasSubstr([], []);
|
|
select hasSubstr([], [1]);
|
|
select hasSubstr([], [NULL]);
|
|
select hasSubstr([Null], [Null]);
|
|
select hasSubstr([Null], [Null, 1]);
|
|
select hasSubstr([1], []);
|
|
select hasSubstr([1], [Null]);
|
|
select hasSubstr([1, Null], [Null]);
|
|
select hasSubstr([1, Null, 3, 4, Null, 5, 7], [3, 4, Null]);
|
|
select hasSubstr([1, Null], [3, 4, Null]);
|
|
select '-';
|
|
|
|
|
|
select hasSubstr([1], emptyArrayUInt8());
|
|
select '-';
|
|
|
|
select hasSubstr([1, 2, 3, 4], [1, 3]);
|
|
select hasSubstr([1, 2, 3, 4], [1, 3, 5]);
|
|
select hasSubstr([-128, 1., 512], [1.]);
|
|
select hasSubstr([-128, 1.0, 512], [.3]);
|
|
select '-';
|
|
|
|
select hasSubstr(['a'], ['a']);
|
|
select hasSubstr(['a', 'b'], ['a', 'c']);
|
|
select hasSubstr(['a', 'c', 'b'], ['a', 'c']);
|
|
select '-';
|
|
|
|
select hasSubstr([1], ['a']);
|
|
select hasSubstr([[1, 2], [3, 4]], ['a', 'c']);
|
|
select hasSubstr([[1, 2], [3, 4], [5, 8]], [[3, 4]]);
|
|
select hasSubstr([[1, 2], [3, 4], [5, 8]], [[3, 4], [5, 8]]);
|
|
select hasSubstr([[1, 2], [3, 4], [5, 8]], [[1, 2], [5, 8]]);
|