Skip to content

Commit

Permalink
CLean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed May 2, 2024
1 parent e527a65 commit e1732b2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion clients/redshift/staging.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/destination/ddl"

"github.com/artie-labs/transfer/lib/destination/types"
"github.com/artie-labs/transfer/lib/optimization"
"github.com/artie-labs/transfer/lib/s3lib"
Expand Down
1 change: 0 additions & 1 deletion lib/destination/ddl/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
// It has a safety check to make sure the tableName contains the `constants.ArtiePrefix` key.
// Temporary tables look like this: database.schema.tableName__artie__RANDOM_STRING(5)_expiryUnixTs
func DropTemporaryTable(dwh destination.DataWarehouse, fqTableName string, shouldReturnError bool) error {
fmt.Println("dropping", fqTableName)
if strings.Contains(strings.ToLower(fqTableName), constants.ArtiePrefix) {
sqlCommand := fmt.Sprintf("DROP TABLE IF EXISTS %s", fqTableName)
slog.Debug("Dropping temporary table", slog.String("sql", sqlCommand))
Expand Down

0 comments on commit e1732b2

Please sign in to comment.