ClickHouse/tests/performance/array_element.xml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
1.5 KiB
XML
Raw Permalink Normal View History

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>
<!-- 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>
2018-02-12 21:19:56 +00:00
</test>