From 37a1d705fd85bf741aca536cd64299fc9b11856f Mon Sep 17 00:00:00 2001 From: Nathan Villaescusa Date: Fri, 3 May 2024 16:12:44 -0700 Subject: [PATCH] Update test --- lib/destination/dml/merge_test.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/destination/dml/merge_test.go b/lib/destination/dml/merge_test.go index 838f84149..463981c1a 100644 --- a/lib/destination/dml/merge_test.go +++ b/lib/destination/dml/merge_test.go @@ -273,18 +273,11 @@ func TestMergeStatementEscapePrimaryKeys(t *testing.T) { } func TestMergeArgument_RedshiftEqualitySQLParts(t *testing.T) { - cols := []columns.Column{ - columns.NewColumn("col1", typing.Invalid), - columns.NewColumn("col2", typing.Invalid), - } - mergeArg := MergeArgument{ - TableID: MockTableIdentifier{"{TABLE_ID}"}, - SubQuery: "{SUB_QUERY}", - PrimaryKeys: []columns.Column{cols[0], columns.NewColumn("othercol", typing.Invalid)}, + PrimaryKeys: []columns.Column{columns.NewColumn("col1", typing.Invalid), columns.NewColumn("col2", typing.Invalid)}, Dialect: sql.SnowflakeDialect{}, } - assert.Equal(t, []string{`c."COL1" = cc."COL1"`, `c."OTHERCOL" = cc."OTHERCOL"`}, mergeArg.redshiftEqualitySQLParts()) + assert.Equal(t, []string{`c."COL1" = cc."COL1"`, `c."COL2" = cc."COL2"`}, mergeArg.redshiftEqualitySQLParts()) } func TestMergeArgument_BuildRedshiftInsertQuery(t *testing.T) {