Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 8, 2024
1 parent c9e332a commit c547fca
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions clients/redshift/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"strings"

"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/destination"
"github.com/artie-labs/transfer/lib/destination/ddl"
"github.com/artie-labs/transfer/lib/destination/types"
"github.com/artie-labs/transfer/lib/optimization"
Expand All @@ -35,8 +34,8 @@ func (s *Store) PrepareTemporaryTable(tableData *optimization.TableData, tableCo
})
}

if len(queries) > 0 {
if err = destination.ExecStatements(s, queries); err != nil {
for _, query := range queries {
if _, err = s.Exec(query); err != nil {
return fmt.Errorf("failed to increase string precision for table %q: %w", parentTableID.FullyQualifiedName(), err)
}
}
Expand Down

0 comments on commit c547fca

Please sign in to comment.