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 042d8ef commit 34e8099
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/config/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const (
// TODO: Add Databricks to this list once it's ready
var ValidDestinations = []DestinationKind{
BigQuery,
Databricks,
MSSQL,
Redshift,
S3,
Expand Down
2 changes: 1 addition & 1 deletion lib/config/destination_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type BigQuery struct {

type Databricks struct {
Host string `yaml:"host"`
HttpPath string `json:"httpPath"`
HttpPath string `yaml:"httpPath"`
Port int `yaml:"port"`
Catalog string `yaml:"catalog"`
PersonalAccessToken string `yaml:"personalAccessToken"`
Expand Down
4 changes: 4 additions & 0 deletions lib/destination/utils/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package utils
import (
"fmt"

"github.com/artie-labs/transfer/clients/databricks"

"github.com/artie-labs/transfer/clients/bigquery"
"github.com/artie-labs/transfer/clients/mssql"
"github.com/artie-labs/transfer/clients/redshift"
Expand Down Expand Up @@ -45,6 +47,8 @@ func LoadDataWarehouse(cfg config.Config, store *db.Store) (destination.DataWare
return s, nil
case constants.BigQuery:
return bigquery.LoadBigQuery(cfg, store)
case constants.Databricks:
return databricks.LoadStore(cfg)
case constants.MSSQL:
s, err := mssql.LoadStore(cfg)
if err != nil {
Expand Down

0 comments on commit 34e8099

Please sign in to comment.