Skip to content

Commit

Permalink
Check for error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 16, 2024
1 parent 5d9a624 commit 8770519
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion clients/redshift/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,13 @@ func (s *Store) PrepareTemporaryTable(ctx context.Context, tableData *optimizati
return fmt.Errorf("failed to increase string precision for table %q: %w", parentTableID.FullyQualifiedName(), err)
}

tableConfig.Columns().UpsertColumn(colName, columns.UpsertColumnArg{
err = tableConfig.Columns().UpsertColumn(colName, columns.UpsertColumnArg{
StringPrecision: typing.ToPtr(newValue),
})

if err != nil {
return fmt.Errorf("failed to update table config with new string precision: %w", err)
}
}

if createTempTable {
Expand Down

0 comments on commit 8770519

Please sign in to comment.