Skip to content

Commit e0580f1

Browse files
authored
Merge branch 'main' into main
2 parents 1e87334 + 62e6a7e commit e0580f1

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

710
### Bug Fixes
811

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
@@ -95,9 +95,7 @@ class Config:
9595
max_connections_per_pool: int = ConfigAttribute()
9696
databricks_environment: Optional[DatabricksEnvironment] = None
9797

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

102100
enable_experimental_files_api_client: bool = ConfigAttribute(env="DATABRICKS_ENABLE_EXPERIMENTAL_FILES_API_CLIENT")
103101
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
@@ -191,7 +191,7 @@ def oauth_service_principal(cfg: "Config") -> Optional[CredentialsProvider]:
191191
token_url=oidc.token_endpoint,
192192
scopes=["all-apis"],
193193
use_header=True,
194-
disable_async=not cfg.enable_experimental_async_token_refresh,
194+
disable_async=cfg.disable_async_token_refresh,
195195
)
196196

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

297297
_ensure_host_present(cfg, token_source_for)
@@ -357,7 +357,7 @@ def github_oidc_azure(cfg: "Config") -> Optional[CredentialsProvider]:
357357
token_url=f"{aad_endpoint}{cfg.azure_tenant_id}/oauth2/token",
358358
endpoint_params=params,
359359
use_params=True,
360-
disable_async=not cfg.enable_experimental_async_token_refresh,
360+
disable_async=cfg.disable_async_token_refresh,
361361
)
362362

363363
def refreshed_headers() -> Dict[str, str]:
@@ -694,7 +694,7 @@ def __init__(self, cfg: "Config"):
694694
token_type_field="token_type",
695695
access_token_field="access_token",
696696
expiry_field="expiry",
697-
disable_async=not cfg.enable_experimental_async_token_refresh,
697+
disable_async=cfg.disable_async_token_refresh,
698698
)
699699

700700
@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)