Skip to content

Commit

Permalink
Getting compatibility with 1.7.0 (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db authored Oct 10, 2023
2 parents eaef1da + 0de948e commit 29b4c20
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 173 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## dbt-databricks 1.7.x (TBD)

### Under the Hood

- Compatibility with dbt-spark 1.7.0b2 ([467](https://github.com/databricks/dbt-databricks/pull/467))

## dbt-databricks 1.6.6 (October 9, 2023)

### Fixes
Expand Down
5 changes: 3 additions & 2 deletions dbt/adapters/databricks/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def emit(self, record: logging.LogRecord) -> None:

@dataclass
class DatabricksCredentials(Credentials):
database: Optional[str] # type: ignore[assignment]
database: Optional[str] = None # type: ignore[assignment]
schema: Optional[str] = None # type: ignore[assignment]
host: Optional[str] = None
http_path: Optional[str] = None
token: Optional[str] = None
Expand Down Expand Up @@ -130,7 +131,7 @@ def __pre_deserialize__(cls, data: Dict[Any, Any]) -> Dict[Any, Any]:
return data

def __post_init__(self) -> None:
if "." in self.schema:
if "." in (self.schema or ""):
raise dbt.exceptions.DbtValidationError(
f"The schema should not contain '.': {self.schema}\n"
"If you are trying to set a catalog, please use `catalog` instead.\n"
Expand Down
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ tox>=3.2.0
types-requests
types-mock

dbt-core==1.6.0
dbt-tests-adapter==1.6.0
dbt-core==1.7.0b2
dbt-tests-adapter==1.7.0b2
# git+https://github.com/dbt-labs/[email protected]#egg=dbt-spark
# git+https://github.com/dbt-labs/[email protected]#egg=dbt-core&subdirectory=core
# git+https://github.com/dbt-labs/[email protected]#egg=dbt-tests-adapter&subdirectory=tests/adapter
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
dbt-spark==1.6.0
dbt-spark==1.7.0b2
databricks-sdk==0.9.0
keyring>=23.13.0
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _get_plugin_version():
packages=find_namespace_packages(include=["dbt", "dbt.*"]),
include_package_data=True,
install_requires=[
"dbt-spark==1.6.0",
"dbt-spark==1.7.0b2",
"databricks-sql-connector>=2.9.3, <3.0.0",
"databricks-sdk>=0.9.0",
"keyring>=23.13.0",
Expand Down
Loading

0 comments on commit 29b4c20

Please sign in to comment.