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)
The text was updated successfully, but these errors were encountered:
melvynator
added
bug
Confirmed user-visible misbehaviour in official release
and removed
potential bug
To be reviewed by developers and confirmed/rejected.
labels
Oct 23, 2023
Describe what's wrong
When I run the below query, I get an exception:
Query:
Reproduce: https://fiddle.clickhouse.com/a739468f-439c-4c8f-9d55-2d2f214fde88
Does it reproduce on recent release?
Yes, I can reproduce this on 23.9.1.1854.
Expected behavior
I would expect the same (empty) output as if I include all columns in the final SELECT:
Error message and/or stacktrace
I get the following exception:
The text was updated successfully, but these errors were encountered: