From 38d52d78720dc95927a17e0d18f912727fd2dc6e Mon Sep 17 00:00:00 2001 From: Amogh Bharadwaj Date: Mon, 18 Mar 2024 17:46:32 +0530 Subject: [PATCH] BigQuery: Fix return mergeErr (#1497) We were returning a wrong error object in BigQuery's merge --- flow/connectors/bigquery/bigquery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/connectors/bigquery/bigquery.go b/flow/connectors/bigquery/bigquery.go index 9c117824ad..93bedcc337 100644 --- a/flow/connectors/bigquery/bigquery.go +++ b/flow/connectors/bigquery/bigquery.go @@ -494,7 +494,7 @@ func (c *BigQueryConnector) NormalizeRecords(ctx context.Context, req *model.Nor SoftDelete: req.SoftDelete, }) if mergeErr != nil { - return nil, err + return nil, mergeErr } err = c.pgMetadata.UpdateNormalizeBatchID(ctx, req.FlowJobName, batchId)