From 3cb345492a38a34d7e4b8b7e1490f6d9d108d92a Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Mon, 30 Sep 2024 11:51:20 -0700 Subject: [PATCH] Adding. --- lib/config/constants/constants.go | 12 +++++++----- lib/config/types.go | 11 ++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/config/constants/constants.go b/lib/config/constants/constants.go index 113039d26..3d0994854 100644 --- a/lib/config/constants/constants.go +++ b/lib/config/constants/constants.go @@ -67,13 +67,15 @@ const ( type DestinationKind string const ( - BigQuery DestinationKind = "bigquery" - MSSQL DestinationKind = "mssql" - Redshift DestinationKind = "redshift" - S3 DestinationKind = "s3" - Snowflake DestinationKind = "snowflake" + BigQuery DestinationKind = "bigquery" + Databricks DestinationKind = "databricks" + MSSQL DestinationKind = "mssql" + Redshift DestinationKind = "redshift" + S3 DestinationKind = "s3" + Snowflake DestinationKind = "snowflake" ) +// TODO: Add Databricks to this list once it's ready var ValidDestinations = []DestinationKind{ BigQuery, MSSQL, diff --git a/lib/config/types.go b/lib/config/types.go index d9247b22f..8727f7070 100644 --- a/lib/config/types.go +++ b/lib/config/types.go @@ -61,11 +61,12 @@ type Config struct { Kafka *Kafka `yaml:"kafka,omitempty"` // Supported destinations - MSSQL *MSSQL `yaml:"mssql,omitempty"` - BigQuery *BigQuery `yaml:"bigquery,omitempty"` - Snowflake *Snowflake `yaml:"snowflake,omitempty"` - Redshift *Redshift `yaml:"redshift,omitempty"` - S3 *S3Settings `yaml:"s3,omitempty"` + BigQuery *BigQuery `yaml:"bigquery,omitempty"` + Databricks *Databricks `yaml:"databricks,omitempty"` + MSSQL *MSSQL `yaml:"mssql,omitempty"` + Snowflake *Snowflake `yaml:"snowflake,omitempty"` + Redshift *Redshift `yaml:"redshift,omitempty"` + S3 *S3Settings `yaml:"s3,omitempty"` SharedDestinationSettings SharedDestinationSettings `yaml:"sharedDestinationSettings"` Reporting Reporting `yaml:"reporting"`