Skip to content

Commit

Permalink
make bq tests faster too
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Nov 10, 2023
1 parent eb09e4e commit 1f697a7
Show file tree
Hide file tree
Showing 5 changed files with 190 additions and 156 deletions.
7 changes: 6 additions & 1 deletion flow/connectors/bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,12 @@ func (c *BigQueryConnector) SetupMetadataTables() error {
},
}
if err := mirrorJobsTable.Create(c.ctx, mirrorJobsTableMetadata); err != nil {
return fmt.Errorf("failed to create table %s: %w", MirrorJobsTable, err)
// if the table already exists, ignore the error
if !strings.Contains(err.Error(), "Already Exists") {
return fmt.Errorf("failed to create table %s: %w", MirrorJobsTable, err)
} else {
log.Infof("table %s already exists", MirrorJobsTable)
}
}

return nil
Expand Down
Loading

0 comments on commit 1f697a7

Please sign in to comment.