@databricks/sdk-statementexecution 0.33.0 → 0.35.0

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.
package/dist/v1/client.js CHANGED
@@ -1,214 +1,189 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- import { VERSION as AUTH_VERSION } from '@databricks/sdk-auth';
3
- import { createDefault } from '@databricks/sdk-core/clientinfo';
4
- import { NoOpLogger } from '@databricks/sdk-core/logger';
5
- import { resolveClientConfig } from './transport';
6
- import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse, } from './utils';
7
- import pkgJson from '../../package.json' with { type: 'json' };
8
- import { marshalCancelStatementRequestSchema, marshalExecuteStatementRequestSchema, unmarshalCancelStatementResponseSchema, unmarshalResultDataSchema, unmarshalStatementResponseSchema, } from './model';
9
- // Package identity segment for this client to be used in the User-Agent header.
1
+ import { resolveClientConfig } from "./transport.js";
2
+ import { buildHttpRequest, executeCall, executeHttpCall, marshalRequest, parseResponse } from "./utils.js";
3
+ import { name, version } from "../package.js";
4
+ import { marshalCancelStatementRequestSchema, marshalExecuteStatementRequestSchema, unmarshalCancelStatementResponseSchema, unmarshalResultDataSchema, unmarshalStatementResponseSchema } from "./model.js";
5
+ import { VERSION } from "@databricks/sdk-auth";
6
+ import { createDefault } from "@databricks/sdk-core/clientinfo";
7
+ import { NoOpLogger } from "@databricks/sdk-core/logger";
8
+
9
+ //#region src/v1/client.ts
10
10
  const PACKAGE_SEGMENT = {
11
- key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\/sdk-/, ''),
12
- value: pkgJson.version,
11
+ key: "sdk-js-" + name.replace(/^@[^/]+\/sdk-/, ""),
12
+ value: version
13
13
  };
14
- export class StatementExecutionClient {
15
- options;
16
- logger;
17
- // User-Agent header value. Composed once at construction from
18
- // createDefault() merged with this package's identity and the active
19
- // credential's name.
20
- userAgent;
21
- // Memoized configuration. The profile is resolved once, lazily, on the first
22
- // request, then reused; host, workspaceId/accountId, and credentials are
23
- // filled from it when not set explicitly on the options.
24
- config;
25
- constructor(options) {
26
- this.options = options;
27
- this.logger = options.logger ?? new NoOpLogger();
28
- const info = createDefault()
29
- .with(PACKAGE_SEGMENT)
30
- .with({ key: 'sdk-js-auth', value: AUTH_VERSION })
31
- .with({ key: 'auth', value: options.credentials?.name() ?? 'default' });
32
- this.userAgent = info.toString();
33
- }
34
- resolveConfig() {
35
- this.config ??= resolveClientConfig(this.options);
36
- return this.config;
37
- }
38
- /**
39
- * Requests that an executing statement be canceled. Callers must poll for status to see the
40
- * terminal state. Cancel response is empty; receiving response indicates successful receipt.
41
- */
42
- async cancelStatement(req, options) {
43
- const { host, workspaceId, httpClient } = await this.resolveConfig();
44
- const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}/cancel`;
45
- const body = marshalRequest(req, marshalCancelStatementRequestSchema);
46
- let resp;
47
- const call = async (callSignal) => {
48
- const headers = new Headers({ 'Content-Type': 'application/json' });
49
- if (workspaceId !== undefined) {
50
- headers.set('X-Databricks-Workspace-Id', workspaceId);
51
- }
52
- headers.set('User-Agent', this.userAgent);
53
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
54
- const respBody = await executeHttpCall({
55
- request: httpReq,
56
- httpClient,
57
- logger: this.logger,
58
- });
59
- resp = parseResponse(respBody, unmarshalCancelStatementResponseSchema);
60
- };
61
- await executeCall(call, options);
62
- if (resp === undefined) {
63
- throw new Error('operation completed without a result.');
64
- }
65
- return resp;
66
- }
67
- /**
68
- * Execute a SQL statement and optionally await its results for a specified time.
69
- *
70
- * **Use case: small result sets with INLINE + JSON_ARRAY**
71
- *
72
- * For flows that generate small and predictable result sets (<= 25 MiB), `INLINE` responses of `JSON_ARRAY` result
73
- * data are typically the simplest way to execute and fetch result data.
74
- *
75
- * **Use case: large result sets with EXTERNAL_LINKS**
76
- *
77
- * Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets efficiently.
78
- * The main differences from using `INLINE` disposition are that the result data is accessed
79
- * with URLs, and
80
- * that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with
81
- * `INLINE`.
82
- *
83
- * ** URLs**
84
- *
85
- * External links point to data stored within your workspace's internal storage, in the form of
86
- * a URL. The URLs are valid for only a short
87
- * period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
88
- * is no longer valid. In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel.
89
- *
90
- * ----
91
- *
92
- * ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.**
93
- *
94
- * When you use the `EXTERNAL_LINKS` disposition, a
95
- * short-lived, URL is generated, which can be
96
- * used to download the results directly
97
- * from . As a
98
- * short-lived is
99
- * embedded in this URL, you should protect
100
- * the URL.
101
- *
102
- * Because URLs are already generated with
103
- * embedded temporary s,
104
- * you must not set an `Authorization` header in the download requests.
105
- *
106
- * The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a support
107
- * case.
108
- *
109
- * See also [Security best practices](/sql/admin/sql-execution-tutorial.html#security-best-practices).
110
- *
111
- * ----
112
- *
113
- * StatementResponse contains `statement_id` and `status`; other fields might be absent or present depending on
114
- * context. If the SQL warehouse fails to execute the provided statement, a 200 response is returned with
115
- * `status.state` set to `FAILED` (in contrast to a failure when accepting the request, which results in a non-200
116
- * response). Details of the error can be found at `status.error` in case of execution failures.
117
- */
118
- async executeStatement(req, options) {
119
- const { host, workspaceId, httpClient } = await this.resolveConfig();
120
- const url = `${host}/api/2.0/sql/statements`;
121
- const body = marshalRequest(req, marshalExecuteStatementRequestSchema);
122
- let resp;
123
- const call = async (callSignal) => {
124
- const headers = new Headers({ 'Content-Type': 'application/json' });
125
- if (workspaceId !== undefined) {
126
- headers.set('X-Databricks-Workspace-Id', workspaceId);
127
- }
128
- headers.set('User-Agent', this.userAgent);
129
- const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
130
- const respBody = await executeHttpCall({
131
- request: httpReq,
132
- httpClient,
133
- logger: this.logger,
134
- });
135
- resp = parseResponse(respBody, unmarshalStatementResponseSchema);
136
- };
137
- await executeCall(call, options);
138
- if (resp === undefined) {
139
- throw new Error('operation completed without a result.');
140
- }
141
- return resp;
142
- }
143
- /**
144
- * After the statement execution has `SUCCEEDED`, this request can be used to fetch any chunk by
145
- * index. Whereas the first chunk with `chunk_index=0` is typically fetched with
146
- * :method:statementexecution/executeStatement or :method:statementexecution/getStatement, this
147
- * request can be used to fetch subsequent chunks. The response structure is identical to the
148
- * nested `result` element described in the :method:statementexecution/getStatement request, and
149
- * similarly includes the `next_chunk_index` and `next_chunk_internal_link` fields for simple
150
- * iteration through the result set. Depending on `disposition`, the response returns chunks of
151
- * data either inline, or as links.
152
- */
153
- async getResultData(req, options) {
154
- const { host, workspaceId, httpClient } = await this.resolveConfig();
155
- const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}/result/chunks/${String(req.chunkIndex ?? '')}`;
156
- let resp;
157
- const call = async (callSignal) => {
158
- const headers = new Headers();
159
- if (workspaceId !== undefined) {
160
- headers.set('X-Databricks-Workspace-Id', workspaceId);
161
- }
162
- headers.set('User-Agent', this.userAgent);
163
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
164
- const respBody = await executeHttpCall({
165
- request: httpReq,
166
- httpClient,
167
- logger: this.logger,
168
- });
169
- resp = parseResponse(respBody, unmarshalResultDataSchema);
170
- };
171
- await executeCall(call, options);
172
- if (resp === undefined) {
173
- throw new Error('operation completed without a result.');
174
- }
175
- return resp;
176
- }
177
- /**
178
- * This request can be used to poll for the statement's status. StatementResponse contains
179
- * `statement_id` and `status`; other fields might be absent or present depending on context.
180
- * When the `status.state` field is `SUCCEEDED` it will also return the result manifest and the
181
- * first chunk of the result data. When the statement is in the terminal states `CANCELED`,
182
- * `CLOSED` or `FAILED`, it returns HTTP 200 with the state set. After at least 12 hours in
183
- * terminal state, the statement is removed from the warehouse and further calls will receive an
184
- * HTTP 404 response.
185
- *
186
- * **NOTE**
187
- * This call currently might take up to 5 seconds to get the latest status and result.
188
- */
189
- async getStatementResult(req, options) {
190
- const { host, workspaceId, httpClient } = await this.resolveConfig();
191
- const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}`;
192
- let resp;
193
- const call = async (callSignal) => {
194
- const headers = new Headers();
195
- if (workspaceId !== undefined) {
196
- headers.set('X-Databricks-Workspace-Id', workspaceId);
197
- }
198
- headers.set('User-Agent', this.userAgent);
199
- const httpReq = buildHttpRequest('GET', url, headers, callSignal);
200
- const respBody = await executeHttpCall({
201
- request: httpReq,
202
- httpClient,
203
- logger: this.logger,
204
- });
205
- resp = parseResponse(respBody, unmarshalStatementResponseSchema);
206
- };
207
- await executeCall(call, options);
208
- if (resp === undefined) {
209
- throw new Error('operation completed without a result.');
210
- }
211
- return resp;
212
- }
213
- }
14
+ var StatementExecutionClient = class {
15
+ options;
16
+ logger;
17
+ userAgent;
18
+ config;
19
+ constructor(options) {
20
+ this.options = options;
21
+ this.logger = options.logger ?? new NoOpLogger();
22
+ this.userAgent = createDefault().with(PACKAGE_SEGMENT).with({
23
+ key: "sdk-js-auth",
24
+ value: VERSION
25
+ }).with({
26
+ key: "auth",
27
+ value: options.credentials?.name() ?? "default"
28
+ }).toString();
29
+ }
30
+ resolveConfig() {
31
+ this.config ??= resolveClientConfig(this.options);
32
+ return this.config;
33
+ }
34
+ /**
35
+ * Requests that an executing statement be canceled. Callers must poll for status to see the
36
+ * terminal state. Cancel response is empty; receiving response indicates successful receipt.
37
+ */
38
+ async cancelStatement(req, options) {
39
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
40
+ const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ""}/cancel`;
41
+ const body = marshalRequest(req, marshalCancelStatementRequestSchema);
42
+ let resp;
43
+ const call = async (callSignal) => {
44
+ const headers = new Headers({ "Content-Type": "application/json" });
45
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
46
+ headers.set("User-Agent", this.userAgent);
47
+ resp = parseResponse(await executeHttpCall({
48
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
49
+ httpClient,
50
+ logger: this.logger
51
+ }), unmarshalCancelStatementResponseSchema);
52
+ };
53
+ await executeCall(call, options);
54
+ if (resp === void 0) throw new Error("operation completed without a result.");
55
+ return resp;
56
+ }
57
+ /**
58
+ * Execute a SQL statement and optionally await its results for a specified time.
59
+ *
60
+ * **Use case: small result sets with INLINE + JSON_ARRAY**
61
+ *
62
+ * For flows that generate small and predictable result sets (<= 25 MiB), `INLINE` responses of `JSON_ARRAY` result
63
+ * data are typically the simplest way to execute and fetch result data.
64
+ *
65
+ * **Use case: large result sets with EXTERNAL_LINKS**
66
+ *
67
+ * Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets efficiently.
68
+ * The main differences from using `INLINE` disposition are that the result data is accessed
69
+ * with URLs, and
70
+ * that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with
71
+ * `INLINE`.
72
+ *
73
+ * ** URLs**
74
+ *
75
+ * External links point to data stored within your workspace's internal storage, in the form of
76
+ * a URL. The URLs are valid for only a short
77
+ * period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
78
+ * is no longer valid. In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel.
79
+ *
80
+ * ----
81
+ *
82
+ * ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.**
83
+ *
84
+ * When you use the `EXTERNAL_LINKS` disposition, a
85
+ * short-lived, URL is generated, which can be
86
+ * used to download the results directly
87
+ * from . As a
88
+ * short-lived is
89
+ * embedded in this URL, you should protect
90
+ * the URL.
91
+ *
92
+ * Because URLs are already generated with
93
+ * embedded temporary s,
94
+ * you must not set an `Authorization` header in the download requests.
95
+ *
96
+ * The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a support
97
+ * case.
98
+ *
99
+ * See also [Security best practices](/sql/admin/sql-execution-tutorial.html#security-best-practices).
100
+ *
101
+ * ----
102
+ *
103
+ * StatementResponse contains `statement_id` and `status`; other fields might be absent or present depending on
104
+ * context. If the SQL warehouse fails to execute the provided statement, a 200 response is returned with
105
+ * `status.state` set to `FAILED` (in contrast to a failure when accepting the request, which results in a non-200
106
+ * response). Details of the error can be found at `status.error` in case of execution failures.
107
+ */
108
+ async executeStatement(req, options) {
109
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
110
+ const url = `${host}/api/2.0/sql/statements`;
111
+ const body = marshalRequest(req, marshalExecuteStatementRequestSchema);
112
+ let resp;
113
+ const call = async (callSignal) => {
114
+ const headers = new Headers({ "Content-Type": "application/json" });
115
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
116
+ headers.set("User-Agent", this.userAgent);
117
+ resp = parseResponse(await executeHttpCall({
118
+ request: buildHttpRequest("POST", url, headers, callSignal, body),
119
+ httpClient,
120
+ logger: this.logger
121
+ }), unmarshalStatementResponseSchema);
122
+ };
123
+ await executeCall(call, options);
124
+ if (resp === void 0) throw new Error("operation completed without a result.");
125
+ return resp;
126
+ }
127
+ /**
128
+ * After the statement execution has `SUCCEEDED`, this request can be used to fetch any chunk by
129
+ * index. Whereas the first chunk with `chunk_index=0` is typically fetched with
130
+ * :method:statementexecution/executeStatement or :method:statementexecution/getStatement, this
131
+ * request can be used to fetch subsequent chunks. The response structure is identical to the
132
+ * nested `result` element described in the :method:statementexecution/getStatement request, and
133
+ * similarly includes the `next_chunk_index` and `next_chunk_internal_link` fields for simple
134
+ * iteration through the result set. Depending on `disposition`, the response returns chunks of
135
+ * data either inline, or as links.
136
+ */
137
+ async getResultData(req, options) {
138
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
139
+ const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ""}/result/chunks/${String(req.chunkIndex ?? "")}`;
140
+ let resp;
141
+ const call = async (callSignal) => {
142
+ const headers = new Headers();
143
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
144
+ headers.set("User-Agent", this.userAgent);
145
+ resp = parseResponse(await executeHttpCall({
146
+ request: buildHttpRequest("GET", url, headers, callSignal),
147
+ httpClient,
148
+ logger: this.logger
149
+ }), unmarshalResultDataSchema);
150
+ };
151
+ await executeCall(call, options);
152
+ if (resp === void 0) throw new Error("operation completed without a result.");
153
+ return resp;
154
+ }
155
+ /**
156
+ * This request can be used to poll for the statement's status. StatementResponse contains
157
+ * `statement_id` and `status`; other fields might be absent or present depending on context.
158
+ * When the `status.state` field is `SUCCEEDED` it will also return the result manifest and the
159
+ * first chunk of the result data. When the statement is in the terminal states `CANCELED`,
160
+ * `CLOSED` or `FAILED`, it returns HTTP 200 with the state set. After at least 12 hours in
161
+ * terminal state, the statement is removed from the warehouse and further calls will receive an
162
+ * HTTP 404 response.
163
+ *
164
+ * **NOTE**
165
+ * This call currently might take up to 5 seconds to get the latest status and result.
166
+ */
167
+ async getStatementResult(req, options) {
168
+ const { host, workspaceId, httpClient } = await this.resolveConfig();
169
+ const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ""}`;
170
+ let resp;
171
+ const call = async (callSignal) => {
172
+ const headers = new Headers();
173
+ if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
174
+ headers.set("User-Agent", this.userAgent);
175
+ resp = parseResponse(await executeHttpCall({
176
+ request: buildHttpRequest("GET", url, headers, callSignal),
177
+ httpClient,
178
+ logger: this.logger
179
+ }), unmarshalStatementResponseSchema);
180
+ };
181
+ await executeCall(call, options);
182
+ if (resp === void 0) throw new Error("operation completed without a result.");
183
+ return resp;
184
+ }
185
+ };
186
+
187
+ //#endregion
188
+ export { StatementExecutionClient };
214
189
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/v1/client.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAE/E,OAAO,EAAC,O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client.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';\nimport {createDefault} from '@databricks/sdk-core/clientinfo';\nimport type {Logger} from '@databricks/sdk-core/logger';\nimport {NoOpLogger} from '@databricks/sdk-core/logger';\nimport type {CallOptions} from '@databricks/sdk-options/call';\nimport type {ClientOptions} from '@databricks/sdk-options/client';\nimport type {ResolvedClientConfig} from './transport';\nimport {resolveClientConfig} from './transport';\nimport {\n buildHttpRequest,\n executeCall,\n executeHttpCall,\n marshalRequest,\n parseResponse,\n} from './utils';\nimport pkgJson from '../../package.json' with {type: 'json'};\nimport type {\n CancelStatementRequest,\n CancelStatementResponse,\n ExecuteStatementRequest,\n GetResultDataRequest,\n GetStatementResultRequest,\n ResultData,\n StatementResponse,\n} from './model';\nimport {\n marshalCancelStatementRequestSchema,\n marshalExecuteStatementRequestSchema,\n unmarshalCancelStatementResponseSchema,\n unmarshalResultDataSchema,\n unmarshalStatementResponseSchema,\n} from './model';\n\n// Package identity segment for this client to be used in the User-Agent header.\nconst PACKAGE_SEGMENT = {\n key: 'sdk-js-' + pkgJson.name.replace(/^@[^/]+\\/sdk-/, ''),\n value: pkgJson.version,\n};\n\nexport class StatementExecutionClient {\n private readonly options: ClientOptions;\n private readonly logger: Logger;\n // User-Agent header value. Composed once at construction from\n // createDefault() merged with this package's identity and the active\n // credential's name.\n private readonly userAgent: string;\n // Memoized configuration. The profile is resolved once, lazily, on the first\n // request, then reused; host, workspaceId/accountId, and credentials are\n // filled from it when not set explicitly on the options.\n private config: Promise<ResolvedClientConfig> | undefined;\n\n constructor(options: ClientOptions) {\n this.options = options;\n this.logger = options.logger ?? new NoOpLogger();\n const info = createDefault()\n .with(PACKAGE_SEGMENT)\n .with({key: 'sdk-js-auth', value: AUTH_VERSION})\n .with({key: 'auth', value: options.credentials?.name() ?? 'default'});\n this.userAgent = info.toString();\n }\n\n private resolveConfig(): Promise<ResolvedClientConfig> {\n this.config ??= resolveClientConfig(this.options);\n return this.config;\n }\n\n /**\n * Requests that an executing statement be canceled. Callers must poll for status to see the\n * terminal state. Cancel response is empty; receiving response indicates successful receipt.\n */\n async cancelStatement(\n req: CancelStatementRequest,\n options?: CallOptions\n ): Promise<CancelStatementResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}/cancel`;\n const body = marshalRequest(req, marshalCancelStatementRequestSchema);\n let resp: CancelStatementResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalCancelStatementResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * Execute a SQL statement and optionally await its results for a specified time.\n *\n * **Use case: small result sets with INLINE + JSON_ARRAY**\n *\n * For flows that generate small and predictable result sets (<= 25 MiB), `INLINE` responses of `JSON_ARRAY` result\n * data are typically the simplest way to execute and fetch result data.\n *\n * **Use case: large result sets with EXTERNAL_LINKS**\n *\n * Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets efficiently.\n * The main differences from using `INLINE` disposition are that the result data is accessed\n * with URLs, and\n * that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with\n * `INLINE`.\n *\n * ** URLs**\n *\n * External links point to data stored within your workspace's internal storage, in the form of\n * a URL. The URLs are valid for only a short\n * period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL\n * is no longer valid. In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel.\n *\n * ----\n *\n * ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.**\n *\n * When you use the `EXTERNAL_LINKS` disposition, a\n * short-lived, URL is generated, which can be\n * used to download the results directly\n * from . As a\n * short-lived is\n * embedded in this URL, you should protect\n * the URL.\n *\n * Because URLs are already generated with\n * embedded temporary s,\n * you must not set an `Authorization` header in the download requests.\n *\n * The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a support\n * case.\n *\n * See also [Security best practices](/sql/admin/sql-execution-tutorial.html#security-best-practices).\n *\n * ----\n *\n * StatementResponse contains `statement_id` and `status`; other fields might be absent or present depending on\n * context. If the SQL warehouse fails to execute the provided statement, a 200 response is returned with\n * `status.state` set to `FAILED` (in contrast to a failure when accepting the request, which results in a non-200\n * response). Details of the error can be found at `status.error` in case of execution failures.\n */\n async executeStatement(\n req: ExecuteStatementRequest,\n options?: CallOptions\n ): Promise<StatementResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/sql/statements`;\n const body = marshalRequest(req, marshalExecuteStatementRequestSchema);\n let resp: StatementResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers({'Content-Type': 'application/json'});\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalStatementResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * After the statement execution has `SUCCEEDED`, this request can be used to fetch any chunk by\n * index. Whereas the first chunk with `chunk_index=0` is typically fetched with\n * :method:statementexecution/executeStatement or :method:statementexecution/getStatement, this\n * request can be used to fetch subsequent chunks. The response structure is identical to the\n * nested `result` element described in the :method:statementexecution/getStatement request, and\n * similarly includes the `next_chunk_index` and `next_chunk_internal_link` fields for simple\n * iteration through the result set. Depending on `disposition`, the response returns chunks of\n * data either inline, or as links.\n */\n async getResultData(\n req: GetResultDataRequest,\n options?: CallOptions\n ): Promise<ResultData> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}/result/chunks/${String(req.chunkIndex ?? '')}`;\n let resp: ResultData | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalResultDataSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n\n /**\n * This request can be used to poll for the statement's status. StatementResponse contains\n * `statement_id` and `status`; other fields might be absent or present depending on context.\n * When the `status.state` field is `SUCCEEDED` it will also return the result manifest and the\n * first chunk of the result data. When the statement is in the terminal states `CANCELED`,\n * `CLOSED` or `FAILED`, it returns HTTP 200 with the state set. After at least 12 hours in\n * terminal state, the statement is removed from the warehouse and further calls will receive an\n * HTTP 404 response.\n *\n * **NOTE**\n * This call currently might take up to 5 seconds to get the latest status and result.\n */\n async getStatementResult(\n req: GetStatementResultRequest,\n options?: CallOptions\n ): Promise<StatementResponse> {\n const {host, workspaceId, httpClient} = await this.resolveConfig();\n const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ''}`;\n let resp: StatementResponse | undefined;\n const call = async (callSignal?: AbortSignal): Promise<void> => {\n const headers = new Headers();\n if (workspaceId !== undefined) {\n headers.set('X-Databricks-Workspace-Id', workspaceId);\n }\n headers.set('User-Agent', this.userAgent);\n const httpReq = buildHttpRequest('GET', url, headers, callSignal);\n const respBody = await executeHttpCall({\n request: httpReq,\n httpClient,\n logger: this.logger,\n });\n resp = parseResponse(respBody, unmarshalStatementResponseSchema);\n };\n await executeCall(call, options);\n if (resp === undefined) {\n throw new Error('operation completed without a result.');\n }\n return resp;\n }\n}\n"],"mappings":";;;;;;;;;AAoCA,MAAM,kBAAkB;CACtB,KAAK,iBAAyB,QAAQ,iBAAiB,GAAG;CAC1D,OAAOA;CACR;AAED,IAAa,2BAAb,MAAsC;CACpC,AAAiB;CACjB,AAAiB;CAIjB,AAAiB;CAIjB,AAAQ;CAER,YAAY,SAAwB;AAClC,OAAK,UAAU;AACf,OAAK,SAAS,QAAQ,UAAU,IAAI,YAAY;AAKhD,OAAK,YAJQ,eAAe,CACzB,KAAK,gBAAgB,CACrB,KAAK;GAAC,KAAK;GAAe,OAAOC;GAAa,CAAC,CAC/C,KAAK;GAAC,KAAK;GAAQ,OAAO,QAAQ,aAAa,MAAM,IAAI;GAAU,CAAC,CACjD,UAAU;;CAGlC,AAAQ,gBAA+C;AACrD,OAAK,WAAW,oBAAoB,KAAK,QAAQ;AACjD,SAAO,KAAK;;;;;;CAOd,MAAM,gBACJ,KACA,SACkC;EAClC,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK,0BAA0B,IAAI,eAAe,GAAG;EACpE,MAAM,OAAO,eAAe,KAAK,oCAAoC;EACrE,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,QAAQ,EAAC,gBAAgB,oBAAmB,CAAC;AACjE,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,QAAQ,KAAK,SAAS,YAAY,KAAK;IAGtE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,uCAAuC;;AAExE,QAAM,YAAY,MAAM,QAAQ;AACh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I,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO;;;;;;;;;;;;;;CAeT,MAAM,mBACJ,KACA,SAC4B;EAC5B,MAAM,EAAC,MAAM,aAAa,eAAc,MAAM,KAAK,eAAe;EAClE,MAAM,MAAM,GAAG,KAAK,0BAA0B,IAAI,eAAe;EACjE,IAAI;EACJ,MAAM,OAAO,OAAO,eAA4C;GAC9D,MAAM,UAAU,IAAI,SAAS;AAC7B,OAAI,gBAAgB,OAClB,SAAQ,IAAI,6BAA6B,YAAY;AAEvD,WAAQ,IAAI,cAAc,KAAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,OAAO,KAAK,SAAS,WAAW;IAG/D;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,iCAAiC;;AAElE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
@@ -1,7 +1,3 @@
1
- /**
2
- * @module v1
3
- */
4
- export { StatementExecutionClient } from './client';
5
- export { ColumnTypeName, Disposition, Format, ServiceErrorCode, TimeoutAction, StatementStatus_State, } from './model';
6
- export type { CancelStatementRequest, CancelStatementResponse, ChunkInfo, ColumnInfo, ExecuteStatementRequest, ExternalLink, GetResultDataRequest, GetStatementResultRequest, QueryTag, ResultData, ResultManifest, Schema, ServiceError, StatementParameter, StatementResponse, StatementStatus, } from './model';
7
- //# sourceMappingURL=index.d.ts.map
1
+ import { CancelStatementRequest, CancelStatementResponse, ChunkInfo, ColumnInfo, ColumnTypeName, Disposition, ExecuteStatementRequest, ExternalLink, Format, GetResultDataRequest, GetStatementResultRequest, QueryTag, ResultData, ResultManifest, Schema, ServiceError, ServiceErrorCode, StatementParameter, StatementResponse, StatementStatus, StatementStatus_State, TimeoutAction } from "./model.js";
2
+ import { StatementExecutionClient } from "./client.js";
3
+ export { type CancelStatementRequest, type CancelStatementResponse, type ChunkInfo, type ColumnInfo, ColumnTypeName, Disposition, type ExecuteStatementRequest, type ExternalLink, Format, type GetResultDataRequest, type GetStatementResultRequest, type QueryTag, type ResultData, type ResultManifest, type Schema, type ServiceError, ServiceErrorCode, StatementExecutionClient, type StatementParameter, type StatementResponse, type StatementStatus, StatementStatus_State, TimeoutAction };
package/dist/v1/index.js CHANGED
@@ -1,7 +1,4 @@
1
- // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
- /**
3
- * @module v1
4
- */
5
- export { StatementExecutionClient } from './client';
6
- export { ColumnTypeName, Disposition, Format, ServiceErrorCode, TimeoutAction, StatementStatus_State, } from './model';
7
- //# sourceMappingURL=index.js.map
1
+ import { ColumnTypeName, Disposition, Format, ServiceErrorCode, StatementStatus_State, TimeoutAction } from "./model.js";
2
+ import { StatementExecutionClient } from "./client.js";
3
+
4
+ export { ColumnTypeName, Disposition, Format, ServiceErrorCode, StatementExecutionClient, StatementStatus_State, TimeoutAction };