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
Can't use alias columns in default expressions #2283
CREATETABLEtest_default_using_alias
(
what String,
a String DEFAULT concat(c, ' is great'),
b String DEFAULT concat(c, ' is fast'),
c String ALIAS concat(what, 'House')
)
ENGINE = TinyLog
:) insert into test_default_using_alias(what) VALUES ('Click');
Received exception from server (version 1.1.54362):
Code: 47. DB::Exception: Received from localhost:9000, ::1. DB::Exception: Unknown identifier: c.
1 rows inset. Elapsed: 0.073 sec.
:) SELECT a,b FROM test_default_using_alias;
SELECT
a,
b
FROM test_default_using_alias
Received exception from server (version 1.1.54362):
Code: 1000. DB::Exception: Received from localhost:9000, ::1. DB::Exception: File not found: /var/lib/clickhouse/data/default/test_default_using_alias/a.bin.
It is the same behaviour if ALIAS columns are present in MATERIALIZED or other ALIAS columns. Very annoying bug - tables are created succesfully, but all inserts fails.
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
vpanfilov commentedon Jul 27, 2018
It is the same behaviour if ALIAS columns are present in MATERIALIZED or other ALIAS columns. Very annoying bug - tables are created succesfully, but all inserts fails.
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.
alesapin commentedon Mar 3, 2020
Fix here #9489