From 9588e8224e2806027181cbf709edfa9084c18573 Mon Sep 17 00:00:00 2001 From: illia-li Date: Tue, 20 Jun 2023 11:27:19 -0400 Subject: [PATCH] fix(store): add skip condition for responses with 0 rows *in check processing added skip condition for responses with 0 rows --- pkg/store/store.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/store/store.go b/pkg/store/store.go index 29622e9c..4f494f2e 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -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)...)