Skip to content

Commit bea4cb8

Browse files
authored
Prep for 1.8.0b1 release (#593)
1 parent 64d5f59 commit bea4cb8

File tree

7 files changed

+15
-6
lines changed

7 files changed

+15
-6
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
- Support `on_config_change` for materialized views, expand the supported config options ([536](https://github.com/databricks/dbt-databricks/pull/536)))
66
- Support `on_config_change` for streaming tables, expand the supported config options ([569](https://github.com/databricks/dbt-databricks/pull/569)))
77

8-
## dbt-databricks 1.7.8 (TBD)
8+
### Under the Hood
9+
10+
- Upgrade databricks-sql-connector to 3.1.0 ([593](https://github.com/databricks/dbt-databricks/pull/593))
11+
12+
## dbt-databricks 1.7.8 (Feb 22, 2024)
913

1014
### Fixes
1115

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: str = "1.7.6"
1+
version: str = "1.8.0b1"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
databricks-sql-connector>=2.9.3, <3.0.0
1+
databricks-sql-connector>=3.1.0, <3.2.0
22
dbt-spark~=1.7.1
33
databricks-sdk==0.17.0
44
keyring>=23.13.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _get_plugin_version() -> str:
5555
include_package_data=True,
5656
install_requires=[
5757
"dbt-spark~=1.7.1",
58-
"databricks-sql-connector>=2.9.3, <3.0.0",
58+
"databricks-sql-connector>=3.1.0, <3.2.0",
5959
"databricks-sdk==0.17.0",
6060
"keyring>=23.13.0",
6161
"pandas<2.2.0",

tests/functional/adapter/materialized_view_tests/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
def query_relation_type(project, relation: BaseRelation) -> Optional[str]:
88
table_type = project.run_sql(
99
f"select table_type from {relation.information_schema_only()}."
10-
f"`tables` where table_name = '{relation.identifier}'",
10+
f"`tables` where table_schema = '{relation.schema}'"
11+
f" and table_name = '{relation.identifier}'",
1112
fetch="one",
1213
)[0]
1314
if table_type == "STREAMING_TABLE":

tests/functional/adapter/materialized_view_tests/test_basic.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def test_table_replaces_materialized_view(self, project, my_materialized_view):
3434
self.swap_materialized_view_to_table(project, my_materialized_view)
3535

3636
util.run_dbt(["run", "--models", my_materialized_view.identifier])
37+
38+
# UC doesn't sync metadata fast enough for this to pass consistently
3739
# assert self.query_relation_type(project, my_materialized_view) == "table"
3840

3941
def test_view_replaces_materialized_view(self, project, my_materialized_view):
@@ -43,6 +45,7 @@ def test_view_replaces_materialized_view(self, project, my_materialized_view):
4345
self.swap_materialized_view_to_view(project, my_materialized_view)
4446

4547
util.run_dbt(["run", "--models", my_materialized_view.identifier])
48+
4649
# UC doesn't sync metadata fast enough for this to pass consistently
4750
# assert self.query_relation_type(project, my_materialized_view) == "view"
4851

tests/functional/adapter/streaming_tables/fixtures.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
def query_relation_type(project, relation: BaseRelation) -> Optional[str]:
88
table_type = project.run_sql(
99
f"select table_type from {relation.information_schema_only()}."
10-
f"`tables` where table_name = '{relation.identifier}'",
10+
f"`tables` where table_schema = '{relation.schema}'"
11+
f" and table_name = '{relation.identifier}'",
1112
fetch="one",
1213
)[0]
1314
if table_type == "STREAMING_TABLE":

0 commit comments

Comments
 (0)