Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Oct 15, 2023
1 parent 47932d5 commit 390ff8a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow/connectors/snowflake/qrep_avro_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,11 @@ func (sc *SnowflakeConnector) GetCopyTransformation(dstTableName string) (*CopyI
continue
}
colName := strings.ToLower(col)
columnOrder = append(columnOrder, fmt.Sprintf("\"%s\"", colName))
// No need to quote raw table columns
if !strings.Contains(dstTableName, "_PEERDB_RAW") {
colName = fmt.Sprintf("\"%s\"", colName)
}
columnOrder = append(columnOrder, colName)
log.Infof("colName: %s has type: %s", colName, colType)

switch colType {
Expand Down

0 comments on commit 390ff8a

Please sign in to comment.