ClickHouse/tests/performance/array_element.xml
李扬 2c76b1789c
Update tests/performance/array_element.xml
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2024-01-10 10:46:29 +08:00

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>