You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WITH array and "No alias for non-trivial value in ARRAY JOIN" #4432
SELECT version()
┌─version()─┐
│ 19.3.3 │
└───────────┘
-- ok:SELECT x
FROMsystem.one
ARRAY JOIN [1, 2] AS x
┌─x─┐
│ 1 │
│ 2 │
└───┘
-- ok:SELECT
[1, 2] AS zz,
x
FROMsystem.one
ARRAY JOIN zz AS x
┌─zz────┬─x─┐
│ [1,2] │ 1 │
│ [1,2] │ 2 │
└───────┴───┘
-- wrong:
WITH [1, 2] AS zz
SELECT x
FROMsystem.one
ARRAY JOIN zz AS x
Received exception from server (version 19.3.3):
Code: 206. DB::Exception: Received from localhost:9000, ::1. DB::Exception: No alias for non-trivial value in ARRAY JOIN: x.
I get the same error running the following SQL on Clickhouse Cloud:
WITH [1, 2] AS zz
SELECT x
FROM system.one
ARRAY JOIN zz AS x
{ "meta": [ ], "data": [ ], "rows": 0, "exception": "Code: 206. DB::Exception: No alias for non-trivial value in ARRAY JOIN: x: While processing WITH [1, 2] AS zz SELECT x FROM system.one ARRAY JOIN [1, 2] AS x. (ALIAS_REQUIRED) (version 24.2.2.16100 (official build))" }
Activity
qoega commentedon Apr 8, 2020
reproduces in 20.3+
MrSsunlight commentedon Aug 24, 2020
I encountered the same problem in version 20.3.11.97
alexey-milovidov commentedon Aug 15, 2021
Reproduced on 21.9.
alexey-milovidov commentedon Aug 15, 2021
#23194
tylerhannan commentedon Apr 7, 2023
An update that, while not fixed, the
allow_experimental_analyzerflag will be useful for this...An example...
https://pastila.nl/?02680ab3/9e7308809ec48009844702187c5c9150
Close: #4432
tema-popov commentedon May 23, 2024
I get the same error running the following SQL on Clickhouse Cloud: