Skip to content

Commit

Permalink
Clickhouse: Remove quote from Normalize statement (#1258)
Browse files Browse the repository at this point in the history
We were running into a syntax error with the insert-into-select
statement in normalize flow due to quoting. This PR removes that
  • Loading branch information
Amogh-Bharadwaj authored Feb 12, 2024
1 parent 9c17dff commit 29b65d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/connectors/clickhouse/normalize.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (c *ClickhouseConnector) NormalizeRecords(ctx context.Context, req *model.N
clickhouseType = "String"
}

projection.WriteString(fmt.Sprintf("JSONExtract(_peerdb_data, '%s', '%s') AS '%s', ", cn, clickhouseType, cn))
projection.WriteString(fmt.Sprintf("JSONExtract(_peerdb_data, '%s', '%s') AS %s, ", cn, clickhouseType, cn))
}

// add _peerdb_sign as _peerdb_record_type / 2
Expand Down

0 comments on commit 29b65d4

Please sign in to comment.