Skip to content

Commit

Permalink
filter excluded columns out on delete
Browse files Browse the repository at this point in the history
add schema check
1db96950527c77fe01bdaacfcea453cc4ea9acac
  • Loading branch information
KosovGrigorii committed Aug 8, 2024
1 parent 437cdc5 commit 40e5557
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (f *FilterColumnsTransformer) getColumnIndexes(item abstract.ChangeItem, fi

func (f *FilterColumnsTransformer) trimChangeItem(original abstract.ChangeItem, filteredColsIndexes []int, filteredSchema *filteredTableSchema) (abstract.ChangeItem, error) {
filteredColumnsCount := len(filteredColsIndexes)
if len(original.ColumnNames) == filteredColumnsCount {
if len(original.ColumnNames) == filteredColumnsCount && len(filteredSchema.Columns) == len(original.TableSchema.Columns()) {
return original, nil
}

Expand Down

0 comments on commit 40e5557

Please sign in to comment.