[Bug] ASAN crash when query a retored non-primary key table with generated column which added by ALTER stmt
Problem: If the non-pk table with some data add a generated column by alter stmt and backup the table when the table finish a base compaction without all rowset. In this case, restore the backup snapshot with trigger this problem. The connection between segment and dcg will be wrongly set, and crash in asan mode. cause by the different column length in chunk. This is because in the restore process, we will skip the empty dog(for the segment generated by compaction) BUT NOT RESET THE INDEX FOR DCG SNAPSHOT LIST INDEX.
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!