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
Cannot use ALIAS columns when inserting into materialized view #2285
CREATE TABLE test1 (
date Date,
datetime DateTime,
zoneId UInt64,
test ALIAS zoneId == 1
) ENGINE = MergeTree(date, (date, zoneId), 8192);
CREATE MATERIALIZED VIEW test1_view
ENGINE = MergeTree(date, (date, zoneId), 8192)
AS SELECT
date,
zoneId,
test
FROM test1;
insert into test1 values (today(), now(), 1);
INSERT INTO test1 VALUES
Received exception from server (version 1.1.54378):
Code: 10. DB::Exception: Received from clickhouse1:9000, 172.20.0.6. DB::Exception: Not found column test in block. There are only columns: date, datetime, zoneId: while pushing to view default.test1_view.
I think ALIAS column should be usable in this case
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
filimonov commentedon Apr 25, 2018
probably related: #2283
Fix materialized view with column defaults.
Fix materialized view with column defaults.
stale commentedon Oct 20, 2019
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
KochetovNicolai commentedon Nov 26, 2019
#7911 is not connected with this issue. Already works at master.