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
CREATETABLEIF NOT EXISTS example_table (
ColumnA Int64,
ColumnB Int64,
ColumnC Int64
)
ENGINE = MergeTree()
ORDER BY ColumnA;
WITH
helper AS (
SELECT*FROM
example_table
ORDER BY
ColumnA WITH FILL INTERPOLATE (
ColumnB AS ColumnC,
ColumnC AS ColumnA
)
)
SELECT ColumnB FROM helper
I would expect the same (empty) output as if I include all columns in the final SELECT:
DROPTABLE IF EXISTS example_table;
CREATETABLEIF NOT EXISTS example_table (
ColumnA Int64,
ColumnB Int64,
ColumnC Int64
)
ENGINE = MergeTree()
ORDER BY ColumnA;
WITH
helper AS (
SELECT*FROM
example_table
ORDER BY
ColumnA WITH FILL INTERPOLATE (
ColumnB AS ColumnC,
ColumnC AS ColumnA
)
)
SELECT*FROM helper
Error message and/or stacktrace
I get the following exception:
Received exception from server (version 23.9.1):
Code: 47. DB::Exception: Received from localhost:9000. DB::Exception: Unknown column: ColumnA, there are only columns ColumnB, ColumnC. (UNKNOWN_IDENTIFIER)
(query: WITH
helper AS (
SELECT
*
FROM
example_table
ORDER BY
ColumnA WITH FILL INTERPOLATE (
ColumnB AS ColumnC,
ColumnC AS ColumnA
)
)
SELECT ColumnB FROM helper)
Activity
melvynator commentedon Oct 23, 2023
Seems like this is a regression. It works in the previous version: https://fiddle.clickhouse.com/e7ce768d-c011-48a3-a186-c05220127b4c
devcrafter commentedon Dec 7, 2023
But works with enabled
allow_experimental_analyzerhttps://fiddle.clickhouse.com/33e32ea4-133a-4167-b7ef-f89df25cb077nikitamikhaylov commentedon Mar 27, 2024
#23194