ClickHouse/tests/queries/0_stateless/02116_tuple_element.reference
2024-01-22 19:38:20 +00:00

26 lines
464 B
Plaintext

1
SELECT `t1.a` AS `tupleElement(t1, 1)`
FROM t_tuple_element
a
SELECT `t1.s` AS `tupleElement(t1, 2)`
FROM t_tuple_element
1
SELECT `t1.a` AS `tupleElement(t1, \'a\')`
FROM t_tuple_element
2
SELECT `t2.1` AS `tupleElement(t2, 1)`
FROM t_tuple_element
2
SELECT `t2.1` AS `tupleElement(t2, 1)`
FROM t_tuple_element
1 2
WITH (1, 2) AS t
SELECT
t.1,
t.2
1 2
WITH CAST(\'(1, 2)\', \'Tuple(a UInt32, b UInt32)\') AS t
SELECT
t.1,
tupleElement(t, \'b\')