Skip to content

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang8330 committed Oct 3, 2024
1 parent 599e168 commit e768417
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clients/databricks/dialect/typing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestDatabricksDialect_DataTypeForKind(t *testing.T) {
}
{
// Variant
assert.Equal(t, "VARIANT", DatabricksDialect{}.DataTypeForKind(typing.KindDetails{Kind: typing.Struct.Kind}, false))
assert.Equal(t, "STRING", DatabricksDialect{}.DataTypeForKind(typing.KindDetails{Kind: typing.Struct.Kind}, false))
}
{
// Array
Expand Down Expand Up @@ -157,12 +157,12 @@ func TestDatabricksDialect_KindForDataType(t *testing.T) {
// Variant
kd, err := DatabricksDialect{}.KindForDataType("VARIANT", "")
assert.NoError(t, err)
assert.Equal(t, typing.KindDetails{Kind: typing.Struct.Kind}, kd)
assert.Equal(t, typing.KindDetails{Kind: typing.String.Kind}, kd)
}
{
// Object
kd, err := DatabricksDialect{}.KindForDataType("OBJECT", "")
assert.NoError(t, err)
assert.Equal(t, typing.KindDetails{Kind: typing.Struct.Kind}, kd)
assert.Equal(t, typing.KindDetails{Kind: typing.String.Kind}, kd)
}
}

0 comments on commit e768417

Please sign in to comment.