2018-02-12 21:19:56 +00:00
|
|
|
<test>
|
2020-06-08 13:57:33 +00:00
|
|
|
<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>
|
2023-11-06 04:37:50 +00:00
|
|
|
|
|
|
|
<!-- arrayElement function with input type Array(Array(UInt8)) -->
|
2024-01-10 02:46:29 +00:00
|
|
|
<query>select materialize(array(array(1,2,3,4)))[1] from numbers(10000000) format Null</query>
|
2024-01-09 02:15:37 +00:00
|
|
|
<query>select materialize(array(array(1,2,3,4)))[materialize(1)] from numbers(10000000) format Null</query>
|
2023-11-06 04:37:50 +00:00
|
|
|
|
|
|
|
<!-- arrayElement function with input type Array(Array(String)) -->
|
2024-01-09 02:15:37 +00:00
|
|
|
<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>
|
2023-11-06 04:37:50 +00:00
|
|
|
|
|
|
|
<!-- arrayElement function with input type Array(Array(Map(String, UInt8))) -->
|
2024-01-09 02:15:37 +00:00
|
|
|
<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>
|
2023-11-06 04:37:50 +00:00
|
|
|
|
|
|
|
<!-- arrayElement function with input type Array(Decimal256(2)) -->
|
2024-01-09 02:15:37 +00:00
|
|
|
<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>
|
2018-02-12 21:19:56 +00:00
|
|
|
</test>
|