From 9aa0683530913aba22aa2767fa05cc512f59afdd Mon Sep 17 00:00:00 2001 From: Kevin Biju Date: Mon, 8 Jan 2024 03:12:27 +0530 Subject: [PATCH] fix update statements to split unchangedToastCols properly --- flow/connectors/bigquery/merge_statement_generator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow/connectors/bigquery/merge_statement_generator.go b/flow/connectors/bigquery/merge_statement_generator.go index a7a890a543..b2e644b8ce 100644 --- a/flow/connectors/bigquery/merge_statement_generator.go +++ b/flow/connectors/bigquery/merge_statement_generator.go @@ -221,7 +221,7 @@ func (m *mergeStmtGenerator) generateUpdateStatements( updateStmts := make([]string, 0, len(unchangedToastCols)) for _, cols := range unchangedToastCols { - unchangedColsArray := strings.Split(cols, ", ") + unchangedColsArray := strings.Split(cols, ",") otherCols := utils.ArrayMinus(allCols, unchangedColsArray) tmpArray := make([]string, 0, len(otherCols)) for _, colName := range otherCols {