Skip to content

Commit

Permalink
Additional merge predicate column.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Apr 26, 2024
1 parent 7bfb2c0 commit e7cbf2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/snowflake/writes.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ func (s *Store) Merge(tableData *optimization.TableData) error {
var additionalEqualityStrings []string
if len(tableData.TopicConfig().AdditionalMergePredicates) > 0 {
for _, additionalMergePredicate := range tableData.TopicConfig().AdditionalMergePredicates {
mergePredicateColumn := sql.EscapeName(additionalMergePredicate.PartitionField, s.ShouldUppercaseEscapedNames(), s.Label())
additionalEqualityStrings = append(additionalEqualityStrings, fmt.Sprintf("c.%s = cc.%s", mergePredicateColumn, mergePredicateColumn))
mergePredicateCol := sql.EscapeName(additionalMergePredicate.PartitionField, s.ShouldUppercaseEscapedNames(), s.Label())
additionalEqualityStrings = append(additionalEqualityStrings, fmt.Sprintf("c.%s = cc.%s", mergePredicateCol, mergePredicateCol))
}
}

Expand Down

0 comments on commit e7cbf2a

Please sign in to comment.