ClickHouse/tests/queries/0_stateless/02354_tuple_element_with_default.reference

27 lines
613 B
Plaintext
Raw Normal View History

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