ClickHouse/tests/queries/0_stateless/02354_tuple_element_with_default.reference
lokax 140f5e6685 recursive check array offsets
Signed-off-by: lokax <m632656684@gmail.com>
2022-07-20 21:20:00 +08:00

27 lines
613 B
Plaintext

z
SELECT tupleElement(t1, \'z\', \'z\')
FROM t_tuple_element_default
0
SELECT tupleElement(t1, \'z\', 0)
FROM t_tuple_element_default
z
SELECT tupleElement(t2, \'z\', \'z\')
FROM t_tuple_element_default
--------------------
[(3,4)]
SELECT tupleElement([(1, 2)], \'a\', [(3, 4)])
--------------------
SELECT tupleElement(t1, \'a\', [tuple(1)])
FROM t_tuple_element_default
--------------------
[(0)]
SELECT tupleElement(t1, \'a\', [tuple(0)])
FROM t_tuple_element_default
[0]
SELECT tupleElement(t1, \'a\', [0])
FROM t_tuple_element_default
[0]
[0]
SELECT tupleElement(t1, \'a\', [0])
FROM t_tuple_element_default