From e1732b222d456be47f61be667f4d48d3ded41929 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 1 May 2024 18:22:27 -0700 Subject: [PATCH] CLean up. --- clients/redshift/staging.go | 1 - lib/destination/ddl/ddl.go | 1 - 2 files changed, 2 deletions(-) diff --git a/clients/redshift/staging.go b/clients/redshift/staging.go index a38fa0864..68d8311d2 100644 --- a/clients/redshift/staging.go +++ b/clients/redshift/staging.go @@ -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" diff --git a/lib/destination/ddl/ddl.go b/lib/destination/ddl/ddl.go index 609aa2787..72c193811 100644 --- a/lib/destination/ddl/ddl.go +++ b/lib/destination/ddl/ddl.go @@ -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))