Skip to content

Commit

Permalink
fix setupnormalize
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 3, 2024
1 parent f777f97 commit 52952cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions flow/connectors/bigquery/bigquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,10 +649,11 @@ func (c *BigQueryConnector) SetupNormalizedTable(
slog.Any("existingMetadata", existingMetadata))
return true, nil
}
}
if !strings.Contains(err.Error(), "notFound") {
return false, fmt.Errorf("error while checking metadata for BigQuery table existence %s: %w",
tableIdentifier, err)
} else {
if !strings.Contains(err.Error(), "notFound") {
return false, fmt.Errorf("error while checking metadata for BigQuery table existence %s: %w",
tableIdentifier, err)
}
}

// convert the column names and types to bigquery types
Expand Down

0 comments on commit 52952cc

Please sign in to comment.