mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 18:32:29 +00:00
8f65dc4ff7
It is not always safe to implicitly rewrite a `tuple` function call to a literal. Even when the tuple has more then one element e.g. `SELECT (tuple(1, 2, 3) AS x).1` is not equivalent to `SELECT ((1, 2, 3) AS x).1`, the latter is interpreted as `SELECT tuple((1, 2, 3) AS x).1`.
5 lines
89 B
Plaintext
5 lines
89 B
Plaintext
SELECT (1, 2, 3)
|
|
SELECT (1, 2, 3) AS x
|
|
SELECT (1, 2, 3).1
|
|
SELECT (tuple(1, 2, 3) AS x).1
|