Skip to content

Commit

Permalink
chore: introduce load table total rows (#3851)
Browse files Browse the repository at this point in the history
  • Loading branch information
achettyiitr authored Sep 29, 2023
1 parent be24be3 commit 1fcabdd
Show file tree
Hide file tree
Showing 49 changed files with 5,709 additions and 1,889 deletions.
1 change: 1 addition & 0 deletions .github/tools/matrixchecker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ var IgnorePackages = []string{
"warehouse/integrations/testhelper",
"warehouse/integrations/testdata",
"warehouse/integrations/config",
"warehouse/integrations/types",
}

func main() {
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ endif
test-warehouse-integration:
$(eval TEST_PATTERN = 'TestIntegration')
$(eval TEST_CMD = SLOW=1 go test)
$(eval TEST_OPTIONS = -v -p 8 -timeout 30m -count 1 -race -run $(TEST_PATTERN) -coverprofile=profile.out -covermode=atomic -coverpkg=./...)
$(eval TEST_OPTIONS = -v -p 8 -timeout 30m -count 1 -run $(TEST_PATTERN) -coverprofile=profile.out -covermode=atomic -coverpkg=./...)
$(TEST_CMD) $(TEST_OPTIONS) $(package) && touch $(TESTFILE) || true

test-warehouse: test-warehouse-integration test-teardown
Expand Down
6 changes: 3 additions & 3 deletions warehouse/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ func (cl *Client) bqQuery(statement string) (result warehouseutils.QueryResult,
for {
var row []bigquery.Value
err = it.Next(&row)
if err == iterator.Done {
break
}
if err != nil {
if errors.Is(err, iterator.Done) {
break
}
return
}
var stringRow []string
Expand Down
3 changes: 2 additions & 1 deletion warehouse/identity/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"compress/gzip"
"context"
"database/sql"
"errors"
"fmt"
"io"
"os"
Expand Down Expand Up @@ -243,7 +244,7 @@ func (idr *Identity) addRules(txn *sqlmiddleware.Tx, loadFileNames []string, gzW
var record []string
record, err = eventReader.Read(columnNames)
if err != nil {
if err == io.EOF {
if errors.Is(err, io.EOF) {
break
}
pkgLogger.Errorf("IDR: Error while reading merge rule file %s for loading in staging table locally:%s: %v", loadFileName, mergeRulesStagingTable, err)
Expand Down
Loading

0 comments on commit 1fcabdd

Please sign in to comment.