You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Serverless Python model environment version configuration (#1277) (#1286)
Resolves#1277
### Description
- Replace deprecated 'client' field with 'environment_version' in
environment spec for serverless Python models
- Add JobEnvironment SDK object conversion in api_client.py to fix 'dict
object has no attribute as_dict' error
- Enable TestServerlessClusterWithEnvironment functional test (was
previously skipped as 'not available in Databricks yet')
- Add unit tests for environment_version usage and user-provided
environments override behavior
- Users can now specify custom environment versions via
python_job_config.environments
### Checklist
- [x] I have run this code in development and it appears to resolve the
stated issue
- [x] This PR includes tests, or tests are not required/relevant for
this PR
- [x] I have updated the `CHANGELOG.md` and added information about my
change to the "dbt-databricks next" section.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
### Fixes
8
8
9
9
- Fix `hard_deletes: invalidate` incorrectly invalidating active records in snapshots (thanks @Zurbste!) ([#1281](https://github.com/databricks/dbt-databricks/issues/1281))
10
+
- Fix serverless Python model environment configuration: use `environment_version` instead of deprecated `client` field. Users can now specify custom environment versions via `python_job_config.environments`. ([#1286](https://github.com/databricks/dbt-databricks/pull/1286))
0 commit comments