Skip to content

Commit

Permalink
Prep for 1.8.0b1 release (#593)
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db authored Feb 22, 2024
1 parent 64d5f59 commit bea4cb8
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
- Support `on_config_change` for materialized views, expand the supported config options ([536](https://github.com/databricks/dbt-databricks/pull/536)))
- Support `on_config_change` for streaming tables, expand the supported config options ([569](https://github.com/databricks/dbt-databricks/pull/569)))

## dbt-databricks 1.7.8 (TBD)
### Under the Hood

- Upgrade databricks-sql-connector to 3.1.0 ([593](https://github.com/databricks/dbt-databricks/pull/593))

## dbt-databricks 1.7.8 (Feb 22, 2024)

### Fixes

Expand Down
2 changes: 1 addition & 1 deletion dbt/adapters/databricks/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: str = "1.7.6"
version: str = "1.8.0b1"
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
databricks-sql-connector>=2.9.3, <3.0.0
databricks-sql-connector>=3.1.0, <3.2.0
dbt-spark~=1.7.1
databricks-sdk==0.17.0
keyring>=23.13.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def _get_plugin_version() -> str:
include_package_data=True,
install_requires=[
"dbt-spark~=1.7.1",
"databricks-sql-connector>=2.9.3, <3.0.0",
"databricks-sql-connector>=3.1.0, <3.2.0",
"databricks-sdk==0.17.0",
"keyring>=23.13.0",
"pandas<2.2.0",
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/adapter/materialized_view_tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
def query_relation_type(project, relation: BaseRelation) -> Optional[str]:
table_type = project.run_sql(
f"select table_type from {relation.information_schema_only()}."
f"`tables` where table_name = '{relation.identifier}'",
f"`tables` where table_schema = '{relation.schema}'"
f" and table_name = '{relation.identifier}'",
fetch="one",
)[0]
if table_type == "STREAMING_TABLE":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def test_table_replaces_materialized_view(self, project, my_materialized_view):
self.swap_materialized_view_to_table(project, my_materialized_view)

util.run_dbt(["run", "--models", my_materialized_view.identifier])

# UC doesn't sync metadata fast enough for this to pass consistently
# assert self.query_relation_type(project, my_materialized_view) == "table"

def test_view_replaces_materialized_view(self, project, my_materialized_view):
Expand All @@ -43,6 +45,7 @@ def test_view_replaces_materialized_view(self, project, my_materialized_view):
self.swap_materialized_view_to_view(project, my_materialized_view)

util.run_dbt(["run", "--models", my_materialized_view.identifier])

# UC doesn't sync metadata fast enough for this to pass consistently
# assert self.query_relation_type(project, my_materialized_view) == "view"

Expand Down
3 changes: 2 additions & 1 deletion tests/functional/adapter/streaming_tables/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
def query_relation_type(project, relation: BaseRelation) -> Optional[str]:
table_type = project.run_sql(
f"select table_type from {relation.information_schema_only()}."
f"`tables` where table_name = '{relation.identifier}'",
f"`tables` where table_schema = '{relation.schema}'"
f" and table_name = '{relation.identifier}'",
fetch="one",
)[0]
if table_type == "STREAMING_TABLE":
Expand Down

0 comments on commit bea4cb8

Please sign in to comment.