Skip to content

Commit

Permalink
fix(store): add skip condition for responses with 0 rows
Browse files Browse the repository at this point in the history
*in check processing added skip condition for responses with 0 rows
  • Loading branch information
illia-li committed Jun 21, 2023
1 parent 4c07350 commit 9588e82
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ func (ds delegatingStore) Check(ctx context.Context, table *typedef.Table, build
if !ds.validations {
return nil
}
if len(testRows) == 0 && len(oracleRows) == 0 {
return nil
}
if len(testRows) != len(oracleRows) {
testSet := strset.New(pks(table, testRows)...)
oracleSet := strset.New(pks(table, oracleRows)...)
Expand Down

0 comments on commit 9588e82

Please sign in to comment.