From 21b69a52a3702cc9ae85aa7b459a33fcc6dadc09 Mon Sep 17 00:00:00 2001 From: Kirill Safonov Date: Fri, 10 Jan 2025 09:59:26 +0100 Subject: [PATCH 1/2] Log when enabling new Files API client --- databricks/sdk/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/databricks/sdk/__init__.py b/databricks/sdk/__init__.py index d27110b8..107e7efb 100755 --- a/databricks/sdk/__init__.py +++ b/databricks/sdk/__init__.py @@ -1,4 +1,5 @@ from typing import Optional +import logging import databricks.sdk.core as client import databricks.sdk.dbutils as dbutils @@ -97,6 +98,7 @@ from databricks.sdk.service.workspace import (GitCredentialsAPI, ReposAPI, SecretsAPI, WorkspaceAPI) +_LOG = logging.getLogger(__name__) def _make_dbutils(config: client.Config): # We try to directly check if we are in runtime, instead of @@ -116,6 +118,7 @@ def _make_dbutils(config: client.Config): def _make_files_client(apiClient: client.ApiClient, config: client.Config): if config.enable_experimental_files_api_client: + _LOG.info("Experimental Files API client is enabled") return FilesExt(apiClient, config) else: return FilesAPI(apiClient) From 786b9f31e42c757fb0ec12d5af049ca40fae8bdc Mon Sep 17 00:00:00 2001 From: Kirill Safonov Date: Fri, 10 Jan 2025 10:41:02 +0100 Subject: [PATCH 2/2] Format --- databricks/sdk/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/databricks/sdk/__init__.py b/databricks/sdk/__init__.py index 107e7efb..3ce67b12 100755 --- a/databricks/sdk/__init__.py +++ b/databricks/sdk/__init__.py @@ -1,5 +1,5 @@ -from typing import Optional import logging +from typing import Optional import databricks.sdk.core as client import databricks.sdk.dbutils as dbutils @@ -100,6 +100,7 @@ _LOG = logging.getLogger(__name__) + def _make_dbutils(config: client.Config): # We try to directly check if we are in runtime, instead of # trying to import from databricks.sdk.runtime. This is to prevent