Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-7
Description
When working with views we currently only allow separate column definitions in CREATE VIEW but not in ALTER VIEW.
Example:
create table t1 (c1 int, c2 int); create view v (x comment 'hello world', y) as select * from t1; describe v; +------+------+-------------+ | name | type | comment | +------+------+-------------+ | x | int | hello world | | y | int | | +------+------+-------------+
Currently we cannot use ALTER VIEW to change the column definitions after the fact, i.e. the following should be supported:
alter view v (z1, z2 comment 'foo bar') as select * from t1;