databricks-sdk 0.0.7__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of databricks-sdk might be problematic. Click here for more details.
- databricks/sdk/__init__.py +121 -104
- databricks/sdk/core.py +76 -16
- databricks/sdk/dbutils.py +18 -17
- databricks/sdk/mixins/compute.py +6 -6
- databricks/sdk/mixins/dbfs.py +6 -6
- databricks/sdk/oauth.py +28 -14
- databricks/sdk/service/{unitycatalog.py → catalog.py} +375 -1146
- databricks/sdk/service/{clusters.py → compute.py} +2176 -61
- databricks/sdk/service/{dbfs.py → files.py} +6 -6
- databricks/sdk/service/{scim.py → iam.py} +567 -27
- databricks/sdk/service/jobs.py +44 -34
- databricks/sdk/service/{mlflow.py → ml.py} +976 -1071
- databricks/sdk/service/oauth2.py +3 -3
- databricks/sdk/service/pipelines.py +46 -30
- databricks/sdk/service/{deployment.py → provisioning.py} +47 -29
- databricks/sdk/service/settings.py +849 -0
- databricks/sdk/service/sharing.py +1176 -0
- databricks/sdk/service/sql.py +15 -15
- databricks/sdk/service/workspace.py +917 -22
- databricks/sdk/version.py +1 -1
- {databricks_sdk-0.0.7.dist-info → databricks_sdk-0.1.1.dist-info}/METADATA +3 -1
- databricks_sdk-0.1.1.dist-info/RECORD +37 -0
- databricks/sdk/service/clusterpolicies.py +0 -399
- databricks/sdk/service/commands.py +0 -478
- databricks/sdk/service/gitcredentials.py +0 -202
- databricks/sdk/service/globalinitscripts.py +0 -262
- databricks/sdk/service/instancepools.py +0 -757
- databricks/sdk/service/ipaccesslists.py +0 -340
- databricks/sdk/service/libraries.py +0 -282
- databricks/sdk/service/permissions.py +0 -470
- databricks/sdk/service/repos.py +0 -250
- databricks/sdk/service/secrets.py +0 -472
- databricks/sdk/service/tokenmanagement.py +0 -182
- databricks/sdk/service/tokens.py +0 -137
- databricks/sdk/service/workspaceconf.py +0 -50
- databricks_sdk-0.0.7.dist-info/RECORD +0 -48
- /databricks/sdk/service/{endpoints.py → serving.py} +0 -0
- {databricks_sdk-0.0.7.dist-info → databricks_sdk-0.1.1.dist-info}/LICENSE +0 -0
- {databricks_sdk-0.0.7.dist-info → databricks_sdk-0.1.1.dist-info}/NOTICE +0 -0
- {databricks_sdk-0.0.7.dist-info → databricks_sdk-0.1.1.dist-info}/WHEEL +0 -0
- {databricks_sdk-0.0.7.dist-info → databricks_sdk-0.1.1.dist-info}/top_level.txt +0 -0
databricks/sdk/service/sql.py
CHANGED
|
@@ -162,6 +162,7 @@ class ChannelInfo:
|
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
class ChannelName(Enum):
|
|
165
|
+
"""Name of the channel"""
|
|
165
166
|
|
|
166
167
|
CHANNEL_NAME_CURRENT = 'CHANNEL_NAME_CURRENT'
|
|
167
168
|
CHANNEL_NAME_CUSTOM = 'CHANNEL_NAME_CUSTOM'
|
|
@@ -2971,13 +2972,10 @@ class StatementExecutionAPI:
|
|
|
2971
2972
|
the final state. - Wait timeouts are approximate, occur server-side, and cannot account for caller delays,
|
|
2972
2973
|
network latency from caller to service, and similarly. - After a statement has been submitted and a
|
|
2973
2974
|
statement_id is returned, that statement's status and result will automatically close after either of 2
|
|
2974
|
-
conditions: - The last result chunk is fetched (or resolved to an external link). -
|
|
2975
|
-
|
|
2976
|
-
regularly (and with backoff) to keep the statement open and alive. - After
|
|
2977
|
-
|
|
2978
|
-
may return an HTTP 404 NOT FOUND error. - After fetching the last result chunk (including chunk_index=0),
|
|
2979
|
-
the statement is closed; shortly after closure the statement will no longer be visible to the API and so,
|
|
2980
|
-
further calls such as :method:statementexecution/getStatement may return an HTTP 404 NOT FOUND error.
|
|
2975
|
+
conditions: - The last result chunk is fetched (or resolved to an external link). - One hour passes with
|
|
2976
|
+
no calls to get the status or fetch the result. Best practice: in asynchronous clients, poll for status
|
|
2977
|
+
regularly (and with backoff) to keep the statement open and alive. - After fetching the last result chunk
|
|
2978
|
+
(including chunk_index=0) the statement is automatically closed.
|
|
2981
2979
|
|
|
2982
2980
|
[Apache Arrow Columnar]: https://arrow.apache.org/overview/
|
|
2983
2981
|
[Public Preview]: https://docs.databricks.com/release-notes/release-types.html
|
|
@@ -3031,8 +3029,11 @@ class StatementExecutionAPI:
|
|
|
3031
3029
|
def get_statement(self, statement_id: str, **kwargs) -> GetStatementResponse:
|
|
3032
3030
|
"""Get status, manifest, and result first chunk.
|
|
3033
3031
|
|
|
3034
|
-
|
|
3035
|
-
manifest and the first chunk of the result data.
|
|
3032
|
+
This request can be used to poll for the statement's status. When the `status.state` field is
|
|
3033
|
+
`SUCCEEDED` it will also return the result manifest and the first chunk of the result data. When the
|
|
3034
|
+
statement is in the terminal states `CANCELED`, `CLOSED` or `FAILED`, it returns HTTP 200 with the
|
|
3035
|
+
state set. After at least 12 hours in terminal state, the statement is removed from the warehouse and
|
|
3036
|
+
further calls will receive an HTTP 404 response.
|
|
3036
3037
|
|
|
3037
3038
|
**NOTE** This call currently may take up to 5 seconds to get the latest status and result."""
|
|
3038
3039
|
request = kwargs.get('request', None)
|
|
@@ -3045,12 +3046,11 @@ class StatementExecutionAPI:
|
|
|
3045
3046
|
def get_statement_result_chunk_n(self, statement_id: str, chunk_index: int, **kwargs) -> ResultData:
|
|
3046
3047
|
"""Get result chunk by index.
|
|
3047
3048
|
|
|
3048
|
-
After statement execution has SUCCEEDED
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
simple iteration through the result set."""
|
|
3049
|
+
After the statement execution has `SUCCEEDED`, the result data can be fetched by chunks. Whereas the
|
|
3050
|
+
first chuck with `chunk_index=0` is typically fetched through a `get status` request, subsequent
|
|
3051
|
+
chunks can be fetched using a `get result` request. The response structure is identical to the nested
|
|
3052
|
+
`result` element described in the `get status` request, and similarly includes the `next_chunk_index`
|
|
3053
|
+
and `next_chunk_internal_link` fields for simple iteration through the result set."""
|
|
3054
3054
|
request = kwargs.get('request', None)
|
|
3055
3055
|
if not request: # request is not given through keyed args
|
|
3056
3056
|
request = GetStatementResultChunkNRequest(chunk_index=chunk_index, statement_id=statement_id)
|