Open spilchen opened 2 weeks ago
Hi @spilchen, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Nice find! Do you know what the expected behavior is if the new type is not compatible with the original computed column expression?
Good suggestion. Yeah, it works if going from int->bigint.
demo@127.0.0.1:26257/demoapp/movr> alter table t1 alter column comp1 type bigint;
ALTER TABLE
Describe the problem
Any attempt to alter the column type of a computed virtual column will result in an error.
To Reproduce
What did you do?
Expected behavior Postgres does not support virtual columns yet, but it does support stored computed columns. It also allows altering the type of these stored computed columns. So, the expected behaviour here is to allow it as well.
Epic CRDB-25314
Jira issue: CRDB-39631