Open spilchen opened 2 months 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.
This might be related to https://github.com/cockroachdb/cockroach/issues/119555 or https://github.com/cockroachdb/cockroach/issues/71571 (in terms of how the legacy schema changer goes through a few invalid intermediate states).
Describe the problem
If you alter the type of a stored computed column to a type that requires a cast (int -> string), then the default value is dropped and we no longer compute values when ingesting new data.
To Reproduce
Expected behavior The postgres behaviour accepts this:
So, we either want to match this behaviour or block the alter entirely.
Epic CRDB-25314