Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Sep 28, 2024
1 parent c9cf389 commit b806fc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions clients/databricks/dialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (d DatabricksDialect) QuoteIdentifier(identifier string) string {
}

func (d DatabricksDialect) EscapeStruct(value string) string {
return strings.ReplaceAll(value, "`", "``")
panic("not implemented") // We don't currently support backfills for Databricks.
}

func (d DatabricksDialect) DataTypeForKind(kd typing.KindDetails, _ bool) string {
Expand Down Expand Up @@ -56,7 +56,7 @@ func (d DatabricksDialect) DataTypeForKind(kd typing.KindDetails, _ bool) string
}

func (d DatabricksDialect) KindForDataType(_type string, _ string) (typing.KindDetails, error) {
// Implement the reverse mapping from Databricks data types to KindDetails
// TODO: Finish
switch strings.ToUpper(_type) {
case "STRING":
return typing.String, nil
Expand Down Expand Up @@ -164,5 +164,5 @@ WHEN NOT MATCHED AND IFNULL(%s, false) = false THEN INSERT (%s) VALUES (%s);`,
}

func (d DatabricksDialect) GetDefaultValueStrategy() sql.DefaultValueStrategy {
return sql.Backfill
return sql.Native
}
4 changes: 1 addition & 3 deletions lib/config/destination_types.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package config

import (
"github.com/artie-labs/transfer/lib/config/constants"
)
import "github.com/artie-labs/transfer/lib/config/constants"

type BigQuery struct {
// PathToCredentials is _optional_ if you have GOOGLE_APPLICATION_CREDENTIALS set as an env var
Expand Down

0 comments on commit b806fc5

Please sign in to comment.