diff --git a/clients/redshift/staging.go b/clients/redshift/staging.go index c6c3a086e..b2f708043 100644 --- a/clients/redshift/staging.go +++ b/clients/redshift/staging.go @@ -35,8 +35,10 @@ func (s *Store) PrepareTemporaryTable(tableData *optimization.TableData, tableCo }) } - if err = destination.ExecStatements(s, queries); err != nil { - return fmt.Errorf("failed to increase string precision for table %q: %w", parentTableID.FullyQualifiedName(), err) + if len(queries) > 0 { + if err = destination.ExecStatements(s, queries); err != nil { + return fmt.Errorf("failed to increase string precision for table %q: %w", parentTableID.FullyQualifiedName(), err) + } } if createTempTable {