DB-759 test and fix alter table bug with cardinality data