Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Apr 21, 2024
1 parent c456f16 commit b8871d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clients/redshift/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ func (s *Store) PrepareTemporaryTable(tableData *optimization.TableData, tableCo
copyStmt := fmt.Sprintf(
`COPY %s FROM '%s' DELIMITER '\t' NULL AS '\\N' GZIP FORMAT CSV %s dateformat 'auto' timeformat 'auto';`,
tempTableID.FullyQualifiedName(),
s3Uri, s.credentialsClause,
s3Uri,
s.credentialsClause,
)
if _, err = s.Exec(copyStmt); err != nil {
return fmt.Errorf("failed to run COPY for temporary table: %w", err)
Expand Down

0 comments on commit b8871d6

Please sign in to comment.