Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 3, 2024
1 parent 3d831f7 commit 759db4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion clients/databricks/dialect/dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ func (DatabricksDialect) BuildAlterColumnQuery(tableID sql.TableIdentifier, colu
}

func (DatabricksDialect) BuildIsNotToastValueExpression(tableAlias constants.TableAlias, column columns.Column) string {
panic("not implemented")
colName := sql.QuoteTableAliasColumn(tableAlias, column, sd)
if column.KindDetails == typing.Struct {
return fmt.Sprintf("COALESCE(%s != {'key': '%s'}, true)", colName, constants.ToastUnavailableValuePlaceholder)
}
return fmt.Sprintf("COALESCE(%s != '%s', true)", colName, constants.ToastUnavailableValuePlaceholder)
}

func (DatabricksDialect) BuildDedupeTableQuery(tableID sql.TableIdentifier, primaryKeys []string) string {
Expand Down
1 change: 0 additions & 1 deletion lib/config/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ const (
Snowflake DestinationKind = "snowflake"
)

// TODO: Add Databricks to this list once it's ready
var ValidDestinations = []DestinationKind{
BigQuery,
Databricks,
Expand Down

0 comments on commit 759db4d

Please sign in to comment.