Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 2, 2024
1 parent 08b0967 commit 042d8ef
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions clients/databricks/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ import (
"os"
"path/filepath"

"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/destination/ddl"
"github.com/artie-labs/transfer/lib/typing"
"github.com/artie-labs/transfer/lib/typing/values"
_ "github.com/databricks/databricks-sql-go"
"github.com/databricks/databricks-sql-go/driverctx"

"github.com/artie-labs/transfer/clients/databricks/dialect"
"github.com/artie-labs/transfer/clients/shared"
"github.com/artie-labs/transfer/lib/config"
"github.com/artie-labs/transfer/lib/config/constants"
"github.com/artie-labs/transfer/lib/db"
"github.com/artie-labs/transfer/lib/destination/ddl"
"github.com/artie-labs/transfer/lib/destination/types"
"github.com/artie-labs/transfer/lib/kafkalib"
"github.com/artie-labs/transfer/lib/optimization"
"github.com/artie-labs/transfer/lib/sql"
_ "github.com/databricks/databricks-sql-go"
driverctx "github.com/databricks/databricks-sql-go/driverctx"
"github.com/artie-labs/transfer/lib/typing"
"github.com/artie-labs/transfer/lib/typing/values"
)

type Store struct {
Expand Down Expand Up @@ -122,7 +122,6 @@ func (s Store) PrepareTemporaryTable(tableData *optimization.TableData, tableCon
func castColValStaging(colVal any, colKind typing.KindDetails) (string, error) {
// TODO: Test null values
if colVal == nil {
// \\N needs to match NULL_IF(...) from ddl.go
return `\\N`, nil
}

Expand Down

0 comments on commit 042d8ef

Please sign in to comment.