Skip to content

Commit 4b0bed3

Browse files
committed
Merge branch 'main' into databricks-wif
2 parents 46dcb5a + 62e6a7e commit 4b0bed3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2310
-375
lines changed

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
31b3fea21dbe5a3a652937691602eb66d6dba30b
1+
05692f4dcf168be190bb7bcda725ee8b368b7ae3

.release_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"timestamp": "2025-03-28 10:43:17+0000"
2+
"timestamp": "2025-04-14 16:07:57+0000"
33
}

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# Version changelog
22

3+
## Release v0.50.0
4+
5+
### API Changes
6+
* Added [w.enable_export_notebook](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings/settings/enable_export_notebook.html) workspace-level service, [w.enable_notebook_table_clipboard](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings/settings/enable_notebook_table_clipboard.html) workspace-level service and [w.enable_results_downloading](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/settings/settings/enable_results_downloading.html) workspace-level service.
7+
* Added `get_credentials_for_trace_data_download()` and `get_credentials_for_trace_data_upload()` methods for [w.experiments](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/ml/experiments.html) workspace-level service.
8+
* Added `get_download_full_query_result()` method for [w.genie](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/dashboards/genie.html) workspace-level service.
9+
* Added `get_published_dashboard_token_info()` method for [w.lakeview_embedded](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/dashboards/lakeview_embedded.html) workspace-level service.
10+
* Added `binding_workspace_ids` field for `databricks.sdk.service.billing.BudgetPolicy`.
11+
* Added `download_id` field for `databricks.sdk.service.dashboards.GenieGenerateDownloadFullQueryResultResponse`.
12+
* Added `dashboard_output` field for `databricks.sdk.service.jobs.RunOutput`.
13+
* Added `dashboard_task` and `power_bi_task` fields for `databricks.sdk.service.jobs.RunTask`.
14+
* Added `dashboard_task` and `power_bi_task` fields for `databricks.sdk.service.jobs.SubmitTask`.
15+
* Added `dashboard_task` and `power_bi_task` fields for `databricks.sdk.service.jobs.Task`.
16+
* Added `include_features` field for `databricks.sdk.service.ml.CreateForecastingExperimentRequest`.
17+
* Added `models` field for `databricks.sdk.service.ml.LogInputs`.
18+
* Added `dataset_digest`, `dataset_name` and `model_id` fields for `databricks.sdk.service.ml.LogMetric`.
19+
* Added `dataset_digest`, `dataset_name`, `model_id` and `run_id` fields for `databricks.sdk.service.ml.Metric`.
20+
* Added `model_inputs` field for `databricks.sdk.service.ml.RunInputs`.
21+
* Added `client_application` field for `databricks.sdk.service.sql.QueryInfo`.
22+
* Added `geography` and `geometry` enum values for `databricks.sdk.service.catalog.ColumnTypeName`.
23+
* Added `allocation_timeout_no_healthy_and_warmed_up_clusters`, `docker_container_creation_exception`, `docker_image_too_large_for_instance_exception` and `docker_invalid_os_exception` enum values for `databricks.sdk.service.compute.TerminationReasonCode`.
24+
* Added `standard` enum value for `databricks.sdk.service.jobs.PerformanceTarget`.
25+
* Added `can_view` enum value for `databricks.sdk.service.sql.WarehousePermissionLevel`.
26+
* [Breaking] Changed `generate_download_full_query_result()` method for [w.genie](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/dashboards/genie.html) workspace-level service . Method path has changed.
27+
* [Breaking] Changed waiter for [CommandExecutionAPI.create](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/compute/command_execution.html#databricks.sdk.service.compute.CommandExecutionAPI.create) method.
28+
* [Breaking] Changed waiter for [CommandExecutionAPI.execute](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/compute/command_execution.html#databricks.sdk.service.compute.CommandExecutionAPI.execute) method.
29+
* [Breaking] Removed `error`, `status` and `transient_statement_id` fields for `databricks.sdk.service.dashboards.GenieGenerateDownloadFullQueryResultResponse`.
30+
* [Breaking] Removed `balanced` and `cost_optimized` enum values for `databricks.sdk.service.jobs.PerformanceTarget`.
31+
* [Breaking] Removed [PipelinesAPI.wait_get_pipeline_running](https://databricks-sdk-py.readthedocs.io/en/latest/workspace/pipelines/pipelines.html#databricks.sdk.service.pipelines.PipelinesAPI.wait_get_pipeline_running) method.
32+
33+
334
## Release v0.49.0
435

536
### API Changes

NEXT_CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# NEXT CHANGELOG
22

3-
## Release v0.50.0
3+
## Release v0.51.0
44

55
### New Features and Improvements
6+
* Enabled asynchronous token refreshes by default. A new `disable_async_token_refresh` configuration option has been added to allow disabling this feature if necessary ([#952](https://github.com/databricks/databricks-sdk-py/pull/952)).
7+
To disable asynchronous token refresh, set the environment variable `DATABRICKS_DISABLE_ASYNC_TOKEN_REFRESH=true` or configure it within your configuration object.
8+
The previous `enable_experimental_async_token_refresh` option has been removed as asynchronous refresh is now the default behavior.
69
* Introduce support for Databricks Workload Identity Federation in GitHub workflows ([933](https://github.com/databricks/databricks-sdk-py/pull/933)).
710
See README.md for instructions.
811
* [Breaking] Users running their workflows in GitHub Actions, which use Cloud native authentication and also have a `DATABRICKS_CLIENT_ID` and `DATABRICKS_HOST`

databricks/sdk/__init__.py

Lines changed: 7 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ class Config:
9696
max_connections_per_pool: int = ConfigAttribute()
9797
databricks_environment: Optional[DatabricksEnvironment] = None
9898

99-
enable_experimental_async_token_refresh: bool = ConfigAttribute(
100-
env="DATABRICKS_ENABLE_EXPERIMENTAL_ASYNC_TOKEN_REFRESH"
101-
)
99+
disable_async_token_refresh: bool = ConfigAttribute(env="DATABRICKS_DISABLE_ASYNC_TOKEN_REFRESH")
102100

103101
enable_experimental_files_api_client: bool = ConfigAttribute(env="DATABRICKS_ENABLE_EXPERIMENTAL_FILES_API_CLIENT")
104102
files_api_client_download_max_total_recovers = None

databricks/sdk/credentials_provider.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def oauth_service_principal(cfg: "Config") -> Optional[CredentialsProvider]:
192192
token_url=oidc.token_endpoint,
193193
scopes=["all-apis"],
194194
use_header=True,
195-
disable_async=not cfg.enable_experimental_async_token_refresh,
195+
disable_async=cfg.disable_async_token_refresh,
196196
)
197197

198198
def inner() -> Dict[str, str]:
@@ -292,7 +292,7 @@ def token_source_for(resource: str) -> TokenSource:
292292
token_url=f"{aad_endpoint}{cfg.azure_tenant_id}/oauth2/token",
293293
endpoint_params={"resource": resource},
294294
use_params=True,
295-
disable_async=not cfg.enable_experimental_async_token_refresh,
295+
disable_async=cfg.disable_async_token_refresh,
296296
)
297297

298298
_ensure_host_present(cfg, token_source_for)
@@ -402,7 +402,7 @@ def github_oidc_azure(cfg: "Config") -> Optional[CredentialsProvider]:
402402
token_url=f"{aad_endpoint}{cfg.azure_tenant_id}/oauth2/token",
403403
endpoint_params=params,
404404
use_params=True,
405-
disable_async=not cfg.enable_experimental_async_token_refresh,
405+
disable_async=cfg.disable_async_token_refresh,
406406
)
407407

408408
def refreshed_headers() -> Dict[str, str]:
@@ -739,7 +739,7 @@ def __init__(self, cfg: "Config"):
739739
token_type_field="token_type",
740740
access_token_field="access_token",
741741
expiry_field="expiry",
742-
disable_async=not cfg.enable_experimental_async_token_refresh,
742+
disable_async=cfg.disable_async_token_refresh,
743743
)
744744

745745
@staticmethod

databricks/sdk/service/billing.py

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/catalog.py

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

databricks/sdk/service/compute.py

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)