mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
2c76b1789c
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
22 lines
1.5 KiB
XML
22 lines
1.5 KiB
XML
<test>
|
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore([[1], [2]][number % 2 + 2])</query>
|
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore([[], [2]][number % 2 + 2])</query>
|
|
<query>SELECT count() FROM numbers(100000000) WHERE NOT ignore([[], []][number % 2 + 2])</query>
|
|
|
|
<!-- arrayElement function with input type Array(Array(UInt8)) -->
|
|
<query>select materialize(array(array(1,2,3,4)))[1] from numbers(10000000) format Null</query>
|
|
<query>select materialize(array(array(1,2,3,4)))[materialize(1)] from numbers(10000000) format Null</query>
|
|
|
|
<!-- arrayElement function with input type Array(Array(String)) -->
|
|
<query>select materialize(array(array('hello', 'world')))[1] from numbers(10000000) format Null</query>
|
|
<query>select materialize(array(array('hello', 'world')))[materialize(1)] from numbers(10000000) format Null</query>
|
|
|
|
<!-- arrayElement function with input type Array(Array(Map(String, UInt8))) -->
|
|
<query>select materialize(array(map('hello', 1, 'world', 2)))[1] from numbers(10000000) format Null</query>
|
|
<query>select materialize(array(map('hello', 1, 'world', 2)))[materialize(1)] from numbers(10000000) format Null</query>
|
|
|
|
<!-- arrayElement function with input type Array(Decimal256(2)) -->
|
|
<query>select materialize(array(1.23::Decimal256(2), 4.56::Decimal256(2)))[1] from numbers(10000000) format Null</query>
|
|
<query>select materialize(array(1.23::Decimal256(2), 4.56::Decimal256(2)))[materialize(1)] from numbers(10000000) format Null</query>
|
|
</test>
|