Skip to content

Commit db53924

Browse files
authored
Fix acceptance test for databricks_table data source (#3578)
* Fix acceptance test for `databricks_table` data source * Another fix
1 parent 802fcd8 commit db53924

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

internal/acceptance/data_table_test.go

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,23 @@ func TestUcAccDataSourceTable(t *testing.T) {
3434
}
3535
}
3636
37-
resource "databricks_table" "mytable" {
37+
resource "databricks_sql_table" "mytable" {
3838
catalog_name = databricks_catalog.sandbox.id
3939
schema_name = databricks_schema.things.name
4040
name = "bar"
4141
table_type = "MANAGED"
4242
data_source_format = "DELTA"
4343
4444
column {
45-
name = "id"
46-
position = 0
47-
type_name = "INT"
48-
type_text = "int"
49-
type_json = "{\"name\":\"id\",\"type\":\"integer\",\"nullable\":true,\"metadata\":{}}"
45+
name = "id"
46+
type = "int"
5047
}
5148
}
5249
5350
data "databricks_table" "this" {
54-
name = databricks_table.mytable.full_name
51+
name = databricks_sql_table.mytable.id
5552
depends_on = [
56-
databricks_table.mytable,
53+
databricks_sql_table.mytable,
5754
]
5855
}
5956
`,

0 commit comments

Comments
 (0)