Let's say we have a table that includes a generated column that concatenates the string of two columns (data_a + data_b):
| id | data_a | data_b | generated_data |
|---|---|---|---|
| 1 | abc | 123 | '123abc' |
| 2 | xyz | 890 | 'xyz890' |
... but we want to change the generation logic, for example reversing the concatenation order (data_b + data_a). Would that "backfill" my previous records, or maintain them but only update the new records?
IE, would this change result in this ("backfill"):
| id | data_a | data_b | generated_data |
|---|---|---|---|
| 1 | abc | 123 | 'abc123' |
| 2 | xyz | 890 | '890xyz' |
| 3 | lmn | 567 | '567lmn' |
... or this ("maintain")?
| id | data_a | data_b | generated_data |
|---|---|---|---|
| 1 | abc | 123 | '123abc' |
| 2 | xyz | 890 | 'xyz890' |
| 3 | lmn | 567 | '567lmn' |