@databricks/sdk-statementexecution 0.51.0 → 0.52.1
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/package.js +1 -1
- package/dist/v1/client.d.ts +11 -17
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +21 -19
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/model.d.ts +10 -5
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +7 -1
- package/dist/v1/model.js.map +1 -1
- package/package.json +4 -4
package/dist/package.js
CHANGED
package/dist/v1/client.d.ts
CHANGED
|
@@ -27,35 +27,29 @@ declare class StatementExecutionClient {
|
|
|
27
27
|
*
|
|
28
28
|
* Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets efficiently.
|
|
29
29
|
* The main differences from using `INLINE` disposition are that the result data is accessed
|
|
30
|
-
* with
|
|
30
|
+
* with short-lived cloud-storage URLs, and
|
|
31
31
|
* that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with
|
|
32
32
|
* `INLINE`.
|
|
33
33
|
*
|
|
34
|
-
* ** URLs**
|
|
34
|
+
* **External-link URLs**
|
|
35
35
|
*
|
|
36
|
-
* External links point to data stored within your workspace's internal storage
|
|
37
|
-
*
|
|
38
|
-
* period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
|
|
36
|
+
* External links point to data stored within your workspace's internal cloud storage. The URLs are valid for only a
|
|
37
|
+
* short period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
|
|
39
38
|
* is no longer valid. In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel.
|
|
40
39
|
*
|
|
41
40
|
* ----
|
|
42
41
|
*
|
|
43
42
|
* ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.**
|
|
44
43
|
*
|
|
45
|
-
* When you use the `EXTERNAL_LINKS` disposition, a
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
* from . As a
|
|
49
|
-
* short-lived is
|
|
50
|
-
* embedded in this URL, you should protect
|
|
51
|
-
* the URL.
|
|
44
|
+
* When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated to download the
|
|
45
|
+
* results. The URL contains temporary access credentials, so protect it and do not set an `Authorization` header in
|
|
46
|
+
* the download request.
|
|
52
47
|
*
|
|
53
|
-
* Because URLs are already generated with
|
|
54
|
-
* embedded temporary s,
|
|
55
|
-
* you must not set an `Authorization` header in the download requests.
|
|
56
48
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
*
|
|
52
|
+
* The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a [support case](/resources/support.html).
|
|
59
53
|
*
|
|
60
54
|
* See also [Security best practices](/sql/admin/sql-execution-tutorial.html#security-best-practices).
|
|
61
55
|
*
|
package/dist/v1/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cAyCa,wBAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAWI;;;;EAFN,eAAA,CACJ,GAAA,EAAK,sBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../src/v1/client.ts"],"mappings":";;;;;cAyCa,wBAAA;EAAA,iBACM,OAAA;EAAA,iBACA,MAAA;EAAA,iBAIA,SAAA;EAAA,QAIT,MAAA;cAEI,OAAA,EAAS,aAAA;EAAA,QAUb,aAAA;EAWI;;;;EAFN,eAAA,CACJ,GAAA,EAAK,sBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,uBAAA;EA0EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAHL,gBAAA,CACJ,GAAA,EAAK,uBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iBAAA;EAqFR;;;;;;;;;;EAjDG,aAAA,CACJ,GAAA,EAAK,oBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,UAAA;;;;;;;;;;;;;EA2CL,kBAAA,CACJ,GAAA,EAAK,yBAAA,EACL,OAAA,GAAU,WAAA,GACT,OAAA,CAAQ,iBAAA;AAAA"}
|
package/dist/v1/client.js
CHANGED
|
@@ -66,35 +66,29 @@ var StatementExecutionClient = class {
|
|
|
66
66
|
*
|
|
67
67
|
* Using `EXTERNAL_LINKS` to fetch result data allows you to fetch large result sets efficiently.
|
|
68
68
|
* The main differences from using `INLINE` disposition are that the result data is accessed
|
|
69
|
-
* with
|
|
69
|
+
* with short-lived cloud-storage URLs, and
|
|
70
70
|
* that there are 3 supported formats: `JSON_ARRAY`, `ARROW_STREAM` and `CSV` compared to only `JSON_ARRAY` with
|
|
71
71
|
* `INLINE`.
|
|
72
72
|
*
|
|
73
|
-
* ** URLs**
|
|
73
|
+
* **External-link URLs**
|
|
74
74
|
*
|
|
75
|
-
* External links point to data stored within your workspace's internal storage
|
|
76
|
-
*
|
|
77
|
-
* period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
|
|
75
|
+
* External links point to data stored within your workspace's internal cloud storage. The URLs are valid for only a
|
|
76
|
+
* short period, <= 15 minutes. Alongside each `external_link` is an expiration field indicating the time at which the URL
|
|
78
77
|
* is no longer valid. In `EXTERNAL_LINKS` mode, chunks can be resolved and fetched multiple times and in parallel.
|
|
79
78
|
*
|
|
80
79
|
* ----
|
|
81
80
|
*
|
|
82
81
|
* ### **Warning: Databricks strongly recommends that you protect the URLs that are returned by the `EXTERNAL_LINKS` disposition.**
|
|
83
82
|
*
|
|
84
|
-
* When you use the `EXTERNAL_LINKS` disposition, a
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* from . As a
|
|
88
|
-
* short-lived is
|
|
89
|
-
* embedded in this URL, you should protect
|
|
90
|
-
* the URL.
|
|
83
|
+
* When you use the `EXTERNAL_LINKS` disposition, a short-lived cloud-storage URL is generated to download the
|
|
84
|
+
* results. The URL contains temporary access credentials, so protect it and do not set an `Authorization` header in
|
|
85
|
+
* the download request.
|
|
91
86
|
*
|
|
92
|
-
* Because URLs are already generated with
|
|
93
|
-
* embedded temporary s,
|
|
94
|
-
* you must not set an `Authorization` header in the download requests.
|
|
95
87
|
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
88
|
+
*
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
* The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a [support case](/resources/support.html).
|
|
98
92
|
*
|
|
99
93
|
* See also [Security best practices](/sql/admin/sql-execution-tutorial.html#security-best-practices).
|
|
100
94
|
*
|
|
@@ -137,13 +131,17 @@ var StatementExecutionClient = class {
|
|
|
137
131
|
async getResultData(req, options) {
|
|
138
132
|
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
139
133
|
const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ""}/result/chunks/${String(req.chunkIndex ?? "")}`;
|
|
134
|
+
const params = new URLSearchParams();
|
|
135
|
+
if (req.warehouseId !== void 0) params.append("warehouse_id", req.warehouseId);
|
|
136
|
+
const query = params.toString();
|
|
137
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
140
138
|
let resp;
|
|
141
139
|
const call = async (callSignal) => {
|
|
142
140
|
const headers = new Headers();
|
|
143
141
|
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
144
142
|
headers.set("User-Agent", this.userAgent);
|
|
145
143
|
resp = parseResponse(await executeHttpCall({
|
|
146
|
-
request: buildHttpRequest("GET",
|
|
144
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
147
145
|
httpClient,
|
|
148
146
|
logger: this.logger
|
|
149
147
|
}), unmarshalResultDataSchema);
|
|
@@ -167,13 +165,17 @@ var StatementExecutionClient = class {
|
|
|
167
165
|
async getStatementResult(req, options) {
|
|
168
166
|
const { host, workspaceId, httpClient } = await this.resolveConfig();
|
|
169
167
|
const url = `${host}/api/2.0/sql/statements/${req.statementId ?? ""}`;
|
|
168
|
+
const params = new URLSearchParams();
|
|
169
|
+
if (req.warehouseId !== void 0) params.append("warehouse_id", req.warehouseId);
|
|
170
|
+
const query = params.toString();
|
|
171
|
+
const fullUrl = query !== "" ? `${url}?${query}` : url;
|
|
170
172
|
let resp;
|
|
171
173
|
const call = async (callSignal) => {
|
|
172
174
|
const headers = new Headers();
|
|
173
175
|
if (workspaceId !== void 0) headers.set("X-Databricks-Workspace-Id", workspaceId);
|
|
174
176
|
headers.set("User-Agent", this.userAgent);
|
|
175
177
|
resp = parseResponse(await executeHttpCall({
|
|
176
|
-
request: buildHttpRequest("GET",
|
|
178
|
+
request: buildHttpRequest("GET", fullUrl, headers, callSignal),
|
|
177
179
|
httpClient,
|
|
178
180
|
logger: this.logger
|
|
179
181
|
}), unmarshalStatementResponseSchema);
|
package/dist/v1/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/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,U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AK,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
|
+
{"version":3,"file":"client.js","names":["pkgJson.version","AUTH_VERSION"],"sources":["../../src/v1/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 short-lived cloud-storage 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 * **External-link URLs**\n *\n * External links point to data stored within your workspace's internal cloud storage. The URLs are valid for only a\n * short 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 short-lived cloud-storage URL is generated to download the\n * results. The URL contains temporary access credentials, so protect it and do not set an `Authorization` header in\n * the download request.\n *\n *\n *\n *\n *\n * The `EXTERNAL_LINKS` disposition can be disabled upon request by creating a [support case](/resources/support.html).\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 const params = new URLSearchParams();\n if (req.warehouseId !== undefined) {\n params.append('warehouse_id', req.warehouseId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\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', fullUrl, 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 const params = new URLSearchParams();\n if (req.warehouseId !== undefined) {\n params.append('warehouse_id', req.warehouseId);\n }\n const query = params.toString();\n const fullUrl = query !== '' ? `${url}?${query}` : url;\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', fullUrl, 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,E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AAK,UAAU;AAOzC,UAAO,cALU,MAAM,gBAAgB;IACrC,SAFc,iBAAiB,OAAO,SAAS,SAAS,WAAW;IAGnE;IACA,QAAQ,KAAK;IACd,CAAC,EAC6B,iCAAiC;;AAElE,QAAM,YAAY,MAAM,QAAQ;AAChC,MAAI,SAAS,OACX,OAAM,IAAI,MAAM,wCAAwC;AAE1D,SAAO"}
|
package/dist/v1/model.d.ts
CHANGED
|
@@ -84,6 +84,8 @@ interface CancelStatementRequest {
|
|
|
84
84
|
* reference for all subsequent calls.
|
|
85
85
|
*/
|
|
86
86
|
statementId?: string | undefined;
|
|
87
|
+
/** For warehouse statement URLs, this field contains the warehouse_id path parameter. */
|
|
88
|
+
warehouseId?: string | undefined;
|
|
87
89
|
}
|
|
88
90
|
interface CancelStatementResponse {}
|
|
89
91
|
interface ChunkInfo {
|
|
@@ -225,7 +227,7 @@ interface ExecuteStatementRequest {
|
|
|
225
227
|
* information (typically a personal access token, OAuth token, or similar) _must be removed_ when fetching from
|
|
226
228
|
* these links.
|
|
227
229
|
*
|
|
228
|
-
* 2. These are
|
|
230
|
+
* 2. These are short-lived cloud-storage URLs
|
|
229
231
|
* with a specific expiration, indicated in the response. The behavior when attempting to use an expired link is
|
|
230
232
|
* cloud specific.
|
|
231
233
|
*/
|
|
@@ -309,9 +311,8 @@ interface ExecuteStatementRequest {
|
|
|
309
311
|
}
|
|
310
312
|
interface ExternalLink {
|
|
311
313
|
/**
|
|
312
|
-
* A
|
|
313
|
-
*
|
|
314
|
-
* (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive
|
|
314
|
+
* A short-lived cloud-storage URL pointing to a chunk of result data, hosted by an external service, with a short
|
|
315
|
+
* expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive
|
|
315
316
|
* and the client should not expose this URL in a log.
|
|
316
317
|
*/
|
|
317
318
|
externalLink?: string | undefined;
|
|
@@ -359,6 +360,8 @@ interface GetResultDataRequest {
|
|
|
359
360
|
*/
|
|
360
361
|
statementId?: string | undefined;
|
|
361
362
|
chunkIndex?: number | undefined;
|
|
363
|
+
/** For warehouse statement URLs, this field contains the warehouse_id path parameter. */
|
|
364
|
+
warehouseId?: string | undefined;
|
|
362
365
|
}
|
|
363
366
|
interface GetStatementResultRequest {
|
|
364
367
|
/**
|
|
@@ -366,6 +369,8 @@ interface GetStatementResultRequest {
|
|
|
366
369
|
* reference for all subsequent calls.
|
|
367
370
|
*/
|
|
368
371
|
statementId?: string | undefined;
|
|
372
|
+
/** For warehouse statement URLs, this field contains the warehouse_id path parameter. */
|
|
373
|
+
warehouseId?: string | undefined;
|
|
369
374
|
}
|
|
370
375
|
/**
|
|
371
376
|
* * A query execution can be annotated with an optional key-value pair to
|
|
@@ -379,7 +384,7 @@ interface QueryTag {
|
|
|
379
384
|
/**
|
|
380
385
|
* Contains the result data of a single chunk when using `INLINE` disposition. When using
|
|
381
386
|
* `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide
|
|
382
|
-
* URLs to the result data
|
|
387
|
+
* short-lived cloud-storage URLs to the result data
|
|
383
388
|
* in cloud storage. Exactly one of these alternatives is used. (While the `external_links`
|
|
384
389
|
* array prepares the API to return multiple links in a single response. Currently only a single
|
|
385
390
|
* link is returned.)
|
package/dist/v1/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","names":[],"sources":["../../src/v1/model.ts"],"mappings":";;;;;cAkBa,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;KAqBD,cAAA,WACA,cAAA,eAA6B,cAAA;AAAA,cAI5B,WAAA;EAAA;;;;KAKD,WAAA,WACA,WAAA,eAA0B,WAAA;AAAA,cAIzB,MAAA;EAAA;;;;;KAMD,MAAA,WAAiB,MAAA,eAAqB,MAAA;AAAA,cAGrC,gBAAA;EAAA;;;;;;;;;;;;;;;KAgBD,gBAAA,WACA,gBAAA,eAA+B,gBAAA;;;;AApB3C;;;;cA+Ba,aAAA;EAAA;;;;KAKD,a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,cAUzB,+BAAA,EAAiC,CAAA,CAAE,OAAA"}
|
package/dist/v1/model.js
CHANGED
|
@@ -247,7 +247,13 @@ const unmarshalStatementStatusSchema = z.object({
|
|
|
247
247
|
error: d.error,
|
|
248
248
|
sqlState: d.sql_state
|
|
249
249
|
}));
|
|
250
|
-
const marshalCancelStatementRequestSchema = z.object({
|
|
250
|
+
const marshalCancelStatementRequestSchema = z.object({
|
|
251
|
+
statementId: z.string().optional(),
|
|
252
|
+
warehouseId: z.string().optional()
|
|
253
|
+
}).transform((d) => ({
|
|
254
|
+
statement_id: d.statementId,
|
|
255
|
+
warehouse_id: d.warehouseId
|
|
256
|
+
}));
|
|
251
257
|
const marshalExecuteStatementRequestSchema = z.object({
|
|
252
258
|
statement: z.string().optional(),
|
|
253
259
|
warehouseId: z.string().optional(),
|
package/dist/v1/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {JsonValue} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\nconst jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([\n z.null(),\n z.number(),\n z.string(),\n z.boolean(),\n z.record(z.string(), jsonValueSchema),\n z.array(jsonValueSchema),\n ])\n);\n\n/** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ColumnTypeName = {\n BOOLEAN: 'BOOLEAN',\n BYTE: 'BYTE',\n SHORT: 'SHORT',\n INT: 'INT',\n LONG: 'LONG',\n FLOAT: 'FLOAT',\n DOUBLE: 'DOUBLE',\n DATE: 'DATE',\n TIMESTAMP: 'TIMESTAMP',\n STRING: 'STRING',\n BINARY: 'BINARY',\n DECIMAL: 'DECIMAL',\n INTERVAL: 'INTERVAL',\n ARRAY: 'ARRAY',\n STRUCT: 'STRUCT',\n MAP: 'MAP',\n CHAR: 'CHAR',\n NULL: 'NULL',\n USER_DEFINED_TYPE: 'USER_DEFINED_TYPE',\n} as const;\nexport type ColumnTypeName =\n | (typeof ColumnTypeName)[keyof typeof ColumnTypeName]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Disposition = {\n FETCH_DISPOSITION_UNSPECIFIED: 'FETCH_DISPOSITION_UNSPECIFIED',\n INLINE: 'INLINE',\n EXTERNAL_LINKS: 'EXTERNAL_LINKS',\n} as const;\nexport type Disposition =\n | (typeof Disposition)[keyof typeof Disposition]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Format = {\n FORMAT_UNSPECIFIED: 'FORMAT_UNSPECIFIED',\n JSON_ARRAY: 'JSON_ARRAY',\n ARROW_STREAM: 'ARROW_STREAM',\n CSV: 'CSV',\n} as const;\nexport type Format = (typeof Format)[keyof typeof Format] | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ServiceErrorCode = {\n UNKNOWN: 'UNKNOWN',\n INTERNAL_ERROR: 'INTERNAL_ERROR',\n TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',\n IO_ERROR: 'IO_ERROR',\n BAD_REQUEST: 'BAD_REQUEST',\n SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',\n WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',\n DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',\n CANCELLED: 'CANCELLED',\n RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',\n ABORTED: 'ABORTED',\n NOT_FOUND: 'NOT_FOUND',\n ALREADY_EXISTS: 'ALREADY_EXISTS',\n UNAUTHENTICATED: 'UNAUTHENTICATED',\n} as const;\nexport type ServiceErrorCode =\n | (typeof ServiceErrorCode)[keyof typeof ServiceErrorCode]\n | (string & {});\n\n/**\n * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't\n * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.\n * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID\n * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,\n * the statement execution is canceled and the call returns with a `CANCELED` state.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const TimeoutAction = {\n TIMEOUT_ACTION_UNSPECIFIED: 'TIMEOUT_ACTION_UNSPECIFIED',\n CONTINUE: 'CONTINUE',\n CANCEL: 'CANCEL',\n} as const;\nexport type TimeoutAction =\n | (typeof TimeoutAction)[keyof typeof TimeoutAction]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const StatementStatus_State = {\n STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',\n PENDING: 'PENDING',\n RUNNING: 'RUNNING',\n SUCCEEDED: 'SUCCEEDED',\n FAILED: 'FAILED',\n CANCELED: 'CANCELED',\n CLOSED: 'CLOSED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type StatementStatus_State =\n | (typeof StatementStatus_State)[keyof typeof StatementStatus_State]\n | (string & {});\n\nexport interface CancelStatementRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CancelStatementResponse {}\n\nexport interface ChunkInfo {\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\nexport interface ColumnInfo {\n /** The name of the column. */\n name?: string | undefined;\n /** The full SQL type specification. */\n typeText?: string | undefined;\n /** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */\n typeName?: ColumnTypeName | undefined;\n /** The ordinal position of the column (starting at position 0). */\n position?: number | undefined;\n /** Specifies the number of digits in a number. This applies to the DECIMAL type. */\n typePrecision?: number | undefined;\n /** Specifies the number of digits to the right of the decimal point in a number. This applies to the DECIMAL type. */\n typeScale?: number | undefined;\n /** The format of the interval type. */\n typeIntervalType?: string | undefined;\n}\n\nexport interface ExecuteStatementRequest {\n /**\n * The SQL statement to execute. The statement can optionally be parameterized, see `parameters`.\n * The maximum query text size is 16 MiB.\n */\n statement?: string | undefined;\n /**\n * Warehouse upon which to execute a statement. See also\n * [What are SQL warehouses?](https://docs.databricks.com/sql/admin/warehouse-type.html)\n */\n warehouseId?: string | undefined;\n /**\n * Sets default catalog for statement execution, similar to\n * [`USE CATALOG`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html)\n * in SQL.\n */\n catalog?: string | undefined;\n /**\n * Sets default schema for statement execution, similar to\n * [`USE SCHEMA`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html)\n * in SQL.\n */\n schema?: string | undefined;\n /**\n * Applies the given row limit to the statement's result set, but unlike the `LIMIT` clause in SQL,\n * it also sets the `truncated` field in the response to indicate whether the result was trimmed due to the limit or\n * not.\n */\n rowLimit?: bigint | undefined;\n /**\n * Applies the given byte limit to the statement's result size. Byte counts are based on internal data\n * representations and might not match the final size in the requested `format`. If the result was truncated due to\n * the byte limit, then `truncated` in the response is set to `true`.\n * When using `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is applied if `byte_limit` is not\n * explicitly set.\n */\n byteLimit?: bigint | undefined;\n /**\n * Statement execution supports three result formats: `JSON_ARRAY` (default), `ARROW_STREAM`, and `CSV`.\n *\n * Important: The formats `ARROW_STREAM` and `CSV` are supported only with `EXTERNAL_LINKS` disposition.\n * `JSON_ARRAY` is supported in `INLINE` and `EXTERNAL_LINKS` disposition.\n *\n * When specifying `format=JSON_ARRAY`, result data will be formatted as an array of arrays of values, where each\n * value is either the *string representation* of a value, or `null`.\n * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)` would\n * look like this:\n *\n * ```\n * [\n * [ \"id-1\", \"1\", null ],\n * [ \"id-2\", \"2\", null ],\n * [ \"id-3\", \"3\", null ],\n * ]\n * ```\n *\n * When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`, each chunk in the result contains compact\n * JSON with no indentation or extra whitespace.\n *\n * When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be formatted\n * as Apache Arrow Stream. See the\n * [Apache Arrow streaming format](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format).\n *\n * When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be a CSV according to\n * [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180) standard.\n * All the columns values will have *string representation* similar to the `JSON_ARRAY` format, and `null` values will\n * be encoded as “null”.\n * Only the first chunk in the result would contain a header row with column names.\n * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null as nullCol FROM range(3)` would\n * look like this:\n *\n * ```\n * strCol,intCol,nullCol\n * id-1,1,null\n * id-2,2,null\n * id-3,3,null\n * ```\n */\n format?: Format | undefined;\n /**\n * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.\n *\n * Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY` format, in a series\n * of chunks. If a given statement produces a result set with a size larger than 25 MiB,\n * that statement execution is aborted, and no result set will be available.\n *\n * **NOTE**\n * Byte limits are computed based upon internal representations of the result set data, and might not match the sizes\n * visible in JSON responses.\n *\n * Statements executed with `EXTERNAL_LINKS` disposition will return result data as external links: URLs that point\n * to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` disposition allows statements to generate\n * arbitrarily sized result sets for fetching up to 100 GiB. The resulting links have two important properties:\n *\n * 1. They point to resources _external_ to the <Databricks> compute; therefore any associated authentication\n * information (typically a personal access token, OAuth token, or similar) _must be removed_ when fetching from\n * these links.\n *\n * 2. These are URLs\n * with a specific expiration, indicated in the response. The behavior when attempting to use an expired link is\n * cloud specific.\n */\n disposition?: Disposition | undefined;\n /**\n * The time in seconds the call will wait for the statement's result set as `Ns`, where `N` can be set to 0 or to a\n * value between 5 and 50.\n *\n * When set to `0s`, the statement will execute in asynchronous mode and the call will not wait for the execution to\n * finish. In this case, the call returns directly with `PENDING` state and a statement ID which can be used for\n * polling with :method:statementexecution/getStatement.\n *\n * When set between 5 and 50 seconds, the call will behave synchronously up to this timeout and wait for the statement\n * execution to finish. If the execution finishes within this time, the call returns immediately with a manifest and\n * result data (or a `FAILED` state in case of an execution error). If the statement takes longer to execute,\n * `on_wait_timeout` determines what should happen after the timeout is reached.\n */\n waitTimeout?: string | undefined;\n /**\n * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't\n * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.\n * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID\n * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,\n * the statement execution is canceled and the call returns with a `CANCELED` state.\n */\n onWaitTimeout?: TimeoutAction | undefined;\n /**\n * A list of parameters to pass into a SQL statement containing parameter markers. A\n * parameter consists of a name, a value, and optionally a type. To represent a NULL\n * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field\n * is omitted, the value is interpreted as a string.\n *\n * If the type is given, parameters will be checked for type correctness according\n * to the given type. A value is correct if the provided string can be converted to\n * the requested type using the `cast` function. The exact semantics are described in\n * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n *\n * For example, the following statement contains two parameters, `my_name` and `my_date`:\n *\n * ```\n * SELECT * FROM my_table WHERE name = :my_name AND date = :my_date\n * ```\n *\n * The parameters can be passed in the request body as follows:\n *\n * `\n * {\n * ...,\n * \"statement\": \"SELECT * FROM my_table WHERE name = :my_name AND date = :my_date\",\n * \"parameters\": [\n * { \"name\": \"my_name\", \"value\": \"the name\" },\n * { \"name\": \"my_date\", \"value\": \"2020-01-01\", \"type\": \"DATE\" }\n * ]\n * }\n * `\n *\n * Currently, positional parameters denoted by a `?` marker are not supported by the\n * Databricks SQL Statement Execution API.\n *\n * Also see the section [Parameter markers](https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html) of the SQL language reference.\n */\n parameters?: StatementParameter[] | undefined;\n /**\n * An array of query tags to annotate a SQL statement. A query tag\n * consists of a non-empty key and, optionally, a value. To represent a NULL\n * value, either omit the `value` field or manually set it to `null` or white space.\n * Refer to the SQL language reference for the format specification of query tags.\n * There's no significance to the order of tags. Only one value per key will be recorded.\n * A sequence in excess of 20 query tags will be coerced to 20.\n * Example:\n *\n * {\n * ...,\n * \"query_tags\": [\n * { \"key\": \"team\", \"value\": \"eng\" },\n * { \"key\": \"some key only tag\" }\n * ]\n * }\n */\n queryTags?: QueryTag[] | undefined;\n}\n\nexport interface ExternalLink {\n /**\n * A URL pointing to a\n * chunk of result data, hosted by an external service, with a short expiration time\n * (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive\n * and the client should not expose this URL in a log.\n */\n externalLink?: string | undefined;\n /**\n * Indicates the date-time that the given external link will expire and\n * becomes invalid, after which point a new `external_link` must be requested.\n */\n expiration?: string | undefined;\n /**\n * HTTP headers that must be included with a GET request to the `external_link`.\n * Each header is provided as a key-value pair.\n * Headers are typically used to pass a decryption key to the external service.\n * The values of these headers should be considered sensitive and the client should not expose\n * these values in a log.\n */\n httpHeaders?: Record<string, string> | undefined;\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\nexport interface GetResultDataRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n chunkIndex?: number | undefined;\n}\n\nexport interface GetStatementResultRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n}\n\n/**\n * * A query execution can be annotated with an optional key-value pair to\n * allow users to attribute the executions by key and optional value to filter by.\n * QueryTag is the user-facing representation.\n */\nexport interface QueryTag {\n key?: string | undefined;\n value?: string | undefined;\n}\n\n/**\n * Contains the result data of a single chunk when using `INLINE` disposition. When using\n * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide\n * URLs to the result data\n * in cloud storage. Exactly one of these alternatives is used. (While the `external_links`\n * array prepares the API to return multiple links in a single response. Currently only a single\n * link is returned.)\n */\nexport interface ResultData {\n externalLinks?: ExternalLink[] | undefined;\n /**\n * The `JSON_ARRAY` format is an array of arrays of values, where each non-null value is\n * formatted as a string. Null values are encoded as JSON `null`.\n */\n dataArray?: JsonValue[][] | undefined;\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\n/** The result manifest provides schema and metadata for the result set. */\nexport interface ResultManifest {\n format?: Format | undefined;\n schema?: Schema | undefined;\n /** The total number of chunks that the result set has been divided into. */\n totalChunkCount?: number | undefined;\n /** Array of result set chunk metadata. */\n chunks?: ChunkInfo[] | undefined;\n /** The total number of rows in the result set. */\n totalRowCount?: bigint | undefined;\n /**\n * The total number of bytes in the result set. This field is not available when using `INLINE`\n * disposition.\n */\n totalByteCount?: bigint | undefined;\n /** Indicates whether the result is truncated due to `row_limit` or `byte_limit`. */\n truncated?: boolean | undefined;\n}\n\n/** The schema is an ordered list of column descriptions. */\nexport interface Schema {\n columnCount?: number | undefined;\n columns?: ColumnInfo[] | undefined;\n}\n\nexport interface ServiceError {\n errorCode?: ServiceErrorCode | undefined;\n /** A brief summary of the error condition. */\n message?: string | undefined;\n}\n\nexport interface StatementParameter {\n /** The name of a parameter marker to be substituted in the statement. */\n name?: string | undefined;\n /** The value to substitute, represented as a string. If omitted, the value is interpreted as NULL. */\n value?: string | undefined;\n /**\n * The data type, given as a string. For example: `INT`, `STRING`, `DECIMAL(10,2)`.\n * If no type is given the type is assumed to be `STRING`. Complex types, such as\n * `ARRAY`, `MAP`, and `STRUCT` are not supported. For valid types, refer to the\n * section [Data types](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n */\n type?: string | undefined;\n}\n\nexport interface StatementResponse {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n status?: StatementStatus | undefined;\n manifest?: ResultManifest | undefined;\n result?: ResultData | undefined;\n}\n\n/** The status response includes execution state and if relevant, error information. */\nexport interface StatementStatus {\n /**\n * Statement execution state:\n * - `PENDING`: waiting for warehouse\n * - `RUNNING`: running\n * - `SUCCEEDED`: execution was successful, result data available for fetch\n * - `FAILED`: execution failed; reason for failure described in accompanying error message\n * - `CANCELED`: user canceled; can come from explicit cancel call, or timeout with\n * `on_wait_timeout=CANCEL`\n * - `CLOSED`: execution successful, and statement closed; result no longer available for fetch\n */\n state?: StatementStatus_State | undefined;\n error?: ServiceError | undefined;\n /**\n * SQLSTATE error code returned when the statement execution fails.\n * Only populated when the statement status is `FAILED`.\n */\n sqlState?: string | undefined;\n}\n\nexport const unmarshalCancelStatementResponseSchema: z.ZodType<CancelStatementResponse> =\n z.object({});\n\nexport const unmarshalChunkInfoSchema: z.ZodType<ChunkInfo> = z\n .object({\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalColumnInfoSchema: z.ZodType<ColumnInfo> = z\n .object({\n name: z.string().optional(),\n type_text: z.string().optional(),\n type_name: z.string().optional(),\n position: z.number().optional(),\n type_precision: z.number().optional(),\n type_scale: z.number().optional(),\n type_interval_type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n typeText: d.type_text,\n typeName: d.type_name,\n position: d.position,\n typePrecision: d.type_precision,\n typeScale: d.type_scale,\n typeIntervalType: d.type_interval_type,\n }));\n\nexport const unmarshalExternalLinkSchema: z.ZodType<ExternalLink> = z\n .object({\n external_link: z.string().optional(),\n expiration: z.string().optional(),\n http_headers: z.record(z.string(), z.string()).optional(),\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n externalLink: d.external_link,\n expiration: d.expiration,\n httpHeaders: d.http_headers,\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalResultDataSchema: z.ZodType<ResultData> = z\n .object({\n external_links: z\n .array(z.lazy(() => unmarshalExternalLinkSchema))\n .optional(),\n data_array: z.array(z.array(jsonValueSchema)).optional(),\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n externalLinks: d.external_links,\n dataArray: d.data_array,\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalResultManifestSchema: z.ZodType<ResultManifest> = z\n .object({\n format: z.string().optional(),\n schema: z.lazy(() => unmarshalSchemaSchema).optional(),\n total_chunk_count: z.number().optional(),\n chunks: z.array(z.lazy(() => unmarshalChunkInfoSchema)).optional(),\n total_row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n total_byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n truncated: z.boolean().optional(),\n })\n .transform(d => ({\n format: d.format,\n schema: d.schema,\n totalChunkCount: d.total_chunk_count,\n chunks: d.chunks,\n totalRowCount: d.total_row_count,\n totalByteCount: d.total_byte_count,\n truncated: d.truncated,\n }));\n\nexport const unmarshalSchemaSchema: z.ZodType<Schema> = z\n .object({\n column_count: z.number().optional(),\n columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),\n })\n .transform(d => ({\n columnCount: d.column_count,\n columns: d.columns,\n }));\n\nexport const unmarshalServiceErrorSchema: z.ZodType<ServiceError> = z\n .object({\n error_code: z.string().optional(),\n message: z.string().optional(),\n })\n .transform(d => ({\n errorCode: d.error_code,\n message: d.message,\n }));\n\nexport const unmarshalStatementResponseSchema: z.ZodType<StatementResponse> = z\n .object({\n statement_id: z.string().optional(),\n status: z.lazy(() => unmarshalStatementStatusSchema).optional(),\n manifest: z.lazy(() => unmarshalResultManifestSchema).optional(),\n result: z.lazy(() => unmarshalResultDataSchema).optional(),\n })\n .transform(d => ({\n statementId: d.statement_id,\n status: d.status,\n manifest: d.manifest,\n result: d.result,\n }));\n\nexport const unmarshalStatementStatusSchema: z.ZodType<StatementStatus> = z\n .object({\n state: z.string().optional(),\n error: z.lazy(() => unmarshalServiceErrorSchema).optional(),\n sql_state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n error: d.error,\n sqlState: d.sql_state,\n }));\n\nexport const marshalCancelStatementRequestSchema: z.ZodType = z\n .object({\n statementId: z.string().optional(),\n })\n .transform(d => ({\n statement_id: d.statementId,\n }));\n\nexport const marshalExecuteStatementRequestSchema: z.ZodType = z\n .object({\n statement: z.string().optional(),\n warehouseId: z.string().optional(),\n catalog: z.string().optional(),\n schema: z.string().optional(),\n rowLimit: z.bigint().optional(),\n byteLimit: z.bigint().optional(),\n format: z.string().optional(),\n disposition: z.string().optional(),\n waitTimeout: z.string().optional(),\n onWaitTimeout: z.string().optional(),\n parameters: z\n .array(z.lazy(() => marshalStatementParameterSchema))\n .optional(),\n queryTags: z.array(z.lazy(() => marshalQueryTagSchema)).optional(),\n })\n .transform(d => ({\n statement: d.statement,\n warehouse_id: d.warehouseId,\n catalog: d.catalog,\n schema: d.schema,\n row_limit: d.rowLimit,\n byte_limit: d.byteLimit,\n format: d.format,\n disposition: d.disposition,\n wait_timeout: d.waitTimeout,\n on_wait_timeout: d.onWaitTimeout,\n parameters: d.parameters,\n query_tags: d.queryTags,\n }));\n\nexport const marshalQueryTagSchema: z.ZodType = z\n .object({\n key: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\nexport const marshalStatementParameterSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n value: d.value,\n type: d.type,\n }));\n"],"mappings":";;;AAKA,MAAM,kBAAwC,EAAE,WAC9C,EAAE,MAAM;CACN,EAAE,MAAM;CACR,EAAE,QAAQ;CACV,EAAE,QAAQ;CACV,EAAE,SAAS;CACX,EAAE,OAAO,EAAE,QAAQ,EAAE,gBAAgB;CACrC,EAAE,MAAM,gBAAgB;CACzB,CAAC,CACH;;AAID,MAAa,iBAAiB;CAC5B,SAAS;CACT,MA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SAAS,EAAE;CACX,QAAQ,EAAE;CACV,WAAW,EAAE;CACb,YAAY,EAAE;CACd,QAAQ,EAAE;CACV,aAAa,EAAE;CACf,cAAc,EAAE;CAChB,iBAAiB,EAAE;CACnB,YAAY,EAAE;CACd,YAAY,EAAE;CACf,EAAE;AAEL,MAAa,wBAAmC,EAC7C,OAAO;CACN,KAAK,EAAE,QAAQ,CAAC,UAAU;CAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC7B,CAAC,CACD,WAAU,OAAM;CACf,KAAK,EAAE;CACP,OAAO,EAAE;CACV,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC5B,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,OAAO,EAAE;CACT,MAAM,EAAE;CACT,EAAE"}
|
|
1
|
+
{"version":3,"file":"model.js","names":[],"sources":["../../src/v1/model.ts"],"sourcesContent":["// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.\n\nimport type {JsonValue} from '@databricks/sdk-core/wkt';\nimport {z} from 'zod';\n\nconst jsonValueSchema: z.ZodType<JsonValue> = z.lazy(() =>\n z.union([\n z.null(),\n z.number(),\n z.string(),\n z.boolean(),\n z.record(z.string(), jsonValueSchema),\n z.array(jsonValueSchema),\n ])\n);\n\n/** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ColumnTypeName = {\n BOOLEAN: 'BOOLEAN',\n BYTE: 'BYTE',\n SHORT: 'SHORT',\n INT: 'INT',\n LONG: 'LONG',\n FLOAT: 'FLOAT',\n DOUBLE: 'DOUBLE',\n DATE: 'DATE',\n TIMESTAMP: 'TIMESTAMP',\n STRING: 'STRING',\n BINARY: 'BINARY',\n DECIMAL: 'DECIMAL',\n INTERVAL: 'INTERVAL',\n ARRAY: 'ARRAY',\n STRUCT: 'STRUCT',\n MAP: 'MAP',\n CHAR: 'CHAR',\n NULL: 'NULL',\n USER_DEFINED_TYPE: 'USER_DEFINED_TYPE',\n} as const;\nexport type ColumnTypeName =\n | (typeof ColumnTypeName)[keyof typeof ColumnTypeName]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Disposition = {\n FETCH_DISPOSITION_UNSPECIFIED: 'FETCH_DISPOSITION_UNSPECIFIED',\n INLINE: 'INLINE',\n EXTERNAL_LINKS: 'EXTERNAL_LINKS',\n} as const;\nexport type Disposition =\n | (typeof Disposition)[keyof typeof Disposition]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const Format = {\n FORMAT_UNSPECIFIED: 'FORMAT_UNSPECIFIED',\n JSON_ARRAY: 'JSON_ARRAY',\n ARROW_STREAM: 'ARROW_STREAM',\n CSV: 'CSV',\n} as const;\nexport type Format = (typeof Format)[keyof typeof Format] | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const ServiceErrorCode = {\n UNKNOWN: 'UNKNOWN',\n INTERNAL_ERROR: 'INTERNAL_ERROR',\n TEMPORARILY_UNAVAILABLE: 'TEMPORARILY_UNAVAILABLE',\n IO_ERROR: 'IO_ERROR',\n BAD_REQUEST: 'BAD_REQUEST',\n SERVICE_UNDER_MAINTENANCE: 'SERVICE_UNDER_MAINTENANCE',\n WORKSPACE_TEMPORARILY_UNAVAILABLE: 'WORKSPACE_TEMPORARILY_UNAVAILABLE',\n DEADLINE_EXCEEDED: 'DEADLINE_EXCEEDED',\n CANCELLED: 'CANCELLED',\n RESOURCE_EXHAUSTED: 'RESOURCE_EXHAUSTED',\n ABORTED: 'ABORTED',\n NOT_FOUND: 'NOT_FOUND',\n ALREADY_EXISTS: 'ALREADY_EXISTS',\n UNAUTHENTICATED: 'UNAUTHENTICATED',\n} as const;\nexport type ServiceErrorCode =\n | (typeof ServiceErrorCode)[keyof typeof ServiceErrorCode]\n | (string & {});\n\n/**\n * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't\n * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.\n * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID\n * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,\n * the statement execution is canceled and the call returns with a `CANCELED` state.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const TimeoutAction = {\n TIMEOUT_ACTION_UNSPECIFIED: 'TIMEOUT_ACTION_UNSPECIFIED',\n CONTINUE: 'CONTINUE',\n CANCEL: 'CANCEL',\n} as const;\nexport type TimeoutAction =\n | (typeof TimeoutAction)[keyof typeof TimeoutAction]\n | (string & {});\n\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Enum-style const object.\nexport const StatementStatus_State = {\n STATE_UNSPECIFIED: 'STATE_UNSPECIFIED',\n PENDING: 'PENDING',\n RUNNING: 'RUNNING',\n SUCCEEDED: 'SUCCEEDED',\n FAILED: 'FAILED',\n CANCELED: 'CANCELED',\n CLOSED: 'CLOSED',\n} as const;\n// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.\nexport type StatementStatus_State =\n | (typeof StatementStatus_State)[keyof typeof StatementStatus_State]\n | (string & {});\n\nexport interface CancelStatementRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n /** For warehouse statement URLs, this field contains the warehouse_id path parameter. */\n warehouseId?: string | undefined;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface CancelStatementResponse {}\n\nexport interface ChunkInfo {\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\nexport interface ColumnInfo {\n /** The name of the column. */\n name?: string | undefined;\n /** The full SQL type specification. */\n typeText?: string | undefined;\n /** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */\n typeName?: ColumnTypeName | undefined;\n /** The ordinal position of the column (starting at position 0). */\n position?: number | undefined;\n /** Specifies the number of digits in a number. This applies to the DECIMAL type. */\n typePrecision?: number | undefined;\n /** Specifies the number of digits to the right of the decimal point in a number. This applies to the DECIMAL type. */\n typeScale?: number | undefined;\n /** The format of the interval type. */\n typeIntervalType?: string | undefined;\n}\n\nexport interface ExecuteStatementRequest {\n /**\n * The SQL statement to execute. The statement can optionally be parameterized, see `parameters`.\n * The maximum query text size is 16 MiB.\n */\n statement?: string | undefined;\n /**\n * Warehouse upon which to execute a statement. See also\n * [What are SQL warehouses?](https://docs.databricks.com/sql/admin/warehouse-type.html)\n */\n warehouseId?: string | undefined;\n /**\n * Sets default catalog for statement execution, similar to\n * [`USE CATALOG`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html)\n * in SQL.\n */\n catalog?: string | undefined;\n /**\n * Sets default schema for statement execution, similar to\n * [`USE SCHEMA`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html)\n * in SQL.\n */\n schema?: string | undefined;\n /**\n * Applies the given row limit to the statement's result set, but unlike the `LIMIT` clause in SQL,\n * it also sets the `truncated` field in the response to indicate whether the result was trimmed due to the limit or\n * not.\n */\n rowLimit?: bigint | undefined;\n /**\n * Applies the given byte limit to the statement's result size. Byte counts are based on internal data\n * representations and might not match the final size in the requested `format`. If the result was truncated due to\n * the byte limit, then `truncated` in the response is set to `true`.\n * When using `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is applied if `byte_limit` is not\n * explicitly set.\n */\n byteLimit?: bigint | undefined;\n /**\n * Statement execution supports three result formats: `JSON_ARRAY` (default), `ARROW_STREAM`, and `CSV`.\n *\n * Important: The formats `ARROW_STREAM` and `CSV` are supported only with `EXTERNAL_LINKS` disposition.\n * `JSON_ARRAY` is supported in `INLINE` and `EXTERNAL_LINKS` disposition.\n *\n * When specifying `format=JSON_ARRAY`, result data will be formatted as an array of arrays of values, where each\n * value is either the *string representation* of a value, or `null`.\n * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)` would\n * look like this:\n *\n * ```\n * [\n * [ \"id-1\", \"1\", null ],\n * [ \"id-2\", \"2\", null ],\n * [ \"id-3\", \"3\", null ],\n * ]\n * ```\n *\n * When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`, each chunk in the result contains compact\n * JSON with no indentation or extra whitespace.\n *\n * When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be formatted\n * as Apache Arrow Stream. See the\n * [Apache Arrow streaming format](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format).\n *\n * When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be a CSV according to\n * [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180) standard.\n * All the columns values will have *string representation* similar to the `JSON_ARRAY` format, and `null` values will\n * be encoded as “null”.\n * Only the first chunk in the result would contain a header row with column names.\n * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null as nullCol FROM range(3)` would\n * look like this:\n *\n * ```\n * strCol,intCol,nullCol\n * id-1,1,null\n * id-2,2,null\n * id-3,3,null\n * ```\n */\n format?: Format | undefined;\n /**\n * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.\n *\n * Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY` format, in a series\n * of chunks. If a given statement produces a result set with a size larger than 25 MiB,\n * that statement execution is aborted, and no result set will be available.\n *\n * **NOTE**\n * Byte limits are computed based upon internal representations of the result set data, and might not match the sizes\n * visible in JSON responses.\n *\n * Statements executed with `EXTERNAL_LINKS` disposition will return result data as external links: URLs that point\n * to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` disposition allows statements to generate\n * arbitrarily sized result sets for fetching up to 100 GiB. The resulting links have two important properties:\n *\n * 1. They point to resources _external_ to the <Databricks> compute; therefore any associated authentication\n * information (typically a personal access token, OAuth token, or similar) _must be removed_ when fetching from\n * these links.\n *\n * 2. These are short-lived cloud-storage URLs\n * with a specific expiration, indicated in the response. The behavior when attempting to use an expired link is\n * cloud specific.\n */\n disposition?: Disposition | undefined;\n /**\n * The time in seconds the call will wait for the statement's result set as `Ns`, where `N` can be set to 0 or to a\n * value between 5 and 50.\n *\n * When set to `0s`, the statement will execute in asynchronous mode and the call will not wait for the execution to\n * finish. In this case, the call returns directly with `PENDING` state and a statement ID which can be used for\n * polling with :method:statementexecution/getStatement.\n *\n * When set between 5 and 50 seconds, the call will behave synchronously up to this timeout and wait for the statement\n * execution to finish. If the execution finishes within this time, the call returns immediately with a manifest and\n * result data (or a `FAILED` state in case of an execution error). If the statement takes longer to execute,\n * `on_wait_timeout` determines what should happen after the timeout is reached.\n */\n waitTimeout?: string | undefined;\n /**\n * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't\n * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.\n * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID\n * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,\n * the statement execution is canceled and the call returns with a `CANCELED` state.\n */\n onWaitTimeout?: TimeoutAction | undefined;\n /**\n * A list of parameters to pass into a SQL statement containing parameter markers. A\n * parameter consists of a name, a value, and optionally a type. To represent a NULL\n * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field\n * is omitted, the value is interpreted as a string.\n *\n * If the type is given, parameters will be checked for type correctness according\n * to the given type. A value is correct if the provided string can be converted to\n * the requested type using the `cast` function. The exact semantics are described in\n * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n *\n * For example, the following statement contains two parameters, `my_name` and `my_date`:\n *\n * ```\n * SELECT * FROM my_table WHERE name = :my_name AND date = :my_date\n * ```\n *\n * The parameters can be passed in the request body as follows:\n *\n * `\n * {\n * ...,\n * \"statement\": \"SELECT * FROM my_table WHERE name = :my_name AND date = :my_date\",\n * \"parameters\": [\n * { \"name\": \"my_name\", \"value\": \"the name\" },\n * { \"name\": \"my_date\", \"value\": \"2020-01-01\", \"type\": \"DATE\" }\n * ]\n * }\n * `\n *\n * Currently, positional parameters denoted by a `?` marker are not supported by the\n * Databricks SQL Statement Execution API.\n *\n * Also see the section [Parameter markers](https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html) of the SQL language reference.\n */\n parameters?: StatementParameter[] | undefined;\n /**\n * An array of query tags to annotate a SQL statement. A query tag\n * consists of a non-empty key and, optionally, a value. To represent a NULL\n * value, either omit the `value` field or manually set it to `null` or white space.\n * Refer to the SQL language reference for the format specification of query tags.\n * There's no significance to the order of tags. Only one value per key will be recorded.\n * A sequence in excess of 20 query tags will be coerced to 20.\n * Example:\n *\n * {\n * ...,\n * \"query_tags\": [\n * { \"key\": \"team\", \"value\": \"eng\" },\n * { \"key\": \"some key only tag\" }\n * ]\n * }\n */\n queryTags?: QueryTag[] | undefined;\n}\n\nexport interface ExternalLink {\n /**\n * A short-lived cloud-storage URL pointing to a chunk of result data, hosted by an external service, with a short\n * expiration time (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive\n * and the client should not expose this URL in a log.\n */\n externalLink?: string | undefined;\n /**\n * Indicates the date-time that the given external link will expire and\n * becomes invalid, after which point a new `external_link` must be requested.\n */\n expiration?: string | undefined;\n /**\n * HTTP headers that must be included with a GET request to the `external_link`.\n * Each header is provided as a key-value pair.\n * Headers are typically used to pass a decryption key to the external service.\n * The values of these headers should be considered sensitive and the client should not expose\n * these values in a log.\n */\n httpHeaders?: Record<string, string> | undefined;\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\nexport interface GetResultDataRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n chunkIndex?: number | undefined;\n /** For warehouse statement URLs, this field contains the warehouse_id path parameter. */\n warehouseId?: string | undefined;\n}\n\nexport interface GetStatementResultRequest {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n /** For warehouse statement URLs, this field contains the warehouse_id path parameter. */\n warehouseId?: string | undefined;\n}\n\n/**\n * * A query execution can be annotated with an optional key-value pair to\n * allow users to attribute the executions by key and optional value to filter by.\n * QueryTag is the user-facing representation.\n */\nexport interface QueryTag {\n key?: string | undefined;\n value?: string | undefined;\n}\n\n/**\n * Contains the result data of a single chunk when using `INLINE` disposition. When using\n * `EXTERNAL_LINKS` disposition, the array `external_links` is used instead to provide\n * short-lived cloud-storage URLs to the result data\n * in cloud storage. Exactly one of these alternatives is used. (While the `external_links`\n * array prepares the API to return multiple links in a single response. Currently only a single\n * link is returned.)\n */\nexport interface ResultData {\n externalLinks?: ExternalLink[] | undefined;\n /**\n * The `JSON_ARRAY` format is an array of arrays of values, where each non-null value is\n * formatted as a string. Null values are encoded as JSON `null`.\n */\n dataArray?: JsonValue[][] | undefined;\n /** The position within the sequence of result set chunks. */\n chunkIndex?: number | undefined;\n /** The starting row offset within the result set. */\n rowOffset?: bigint | undefined;\n /** The number of rows within the result chunk. */\n rowCount?: bigint | undefined;\n /**\n * The number of bytes in the result chunk. This field is not available when using `INLINE`\n * disposition.\n */\n byteCount?: bigint | undefined;\n /**\n * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no\n * more chunks. The next chunk can be fetched with a\n * :method:statementexecution/getstatementresultchunkn request.\n */\n nextChunkIndex?: number | undefined;\n /**\n * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more\n * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be\n * treated as an opaque link. This is an alternative to using `next_chunk_index`.\n */\n nextChunkInternalLink?: string | undefined;\n}\n\n/** The result manifest provides schema and metadata for the result set. */\nexport interface ResultManifest {\n format?: Format | undefined;\n schema?: Schema | undefined;\n /** The total number of chunks that the result set has been divided into. */\n totalChunkCount?: number | undefined;\n /** Array of result set chunk metadata. */\n chunks?: ChunkInfo[] | undefined;\n /** The total number of rows in the result set. */\n totalRowCount?: bigint | undefined;\n /**\n * The total number of bytes in the result set. This field is not available when using `INLINE`\n * disposition.\n */\n totalByteCount?: bigint | undefined;\n /** Indicates whether the result is truncated due to `row_limit` or `byte_limit`. */\n truncated?: boolean | undefined;\n}\n\n/** The schema is an ordered list of column descriptions. */\nexport interface Schema {\n columnCount?: number | undefined;\n columns?: ColumnInfo[] | undefined;\n}\n\nexport interface ServiceError {\n errorCode?: ServiceErrorCode | undefined;\n /** A brief summary of the error condition. */\n message?: string | undefined;\n}\n\nexport interface StatementParameter {\n /** The name of a parameter marker to be substituted in the statement. */\n name?: string | undefined;\n /** The value to substitute, represented as a string. If omitted, the value is interpreted as NULL. */\n value?: string | undefined;\n /**\n * The data type, given as a string. For example: `INT`, `STRING`, `DECIMAL(10,2)`.\n * If no type is given the type is assumed to be `STRING`. Complex types, such as\n * `ARRAY`, `MAP`, and `STRUCT` are not supported. For valid types, refer to the\n * section [Data types](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.\n */\n type?: string | undefined;\n}\n\nexport interface StatementResponse {\n /**\n * The statement ID is returned upon successfully submitting a SQL statement, and is a required\n * reference for all subsequent calls.\n */\n statementId?: string | undefined;\n status?: StatementStatus | undefined;\n manifest?: ResultManifest | undefined;\n result?: ResultData | undefined;\n}\n\n/** The status response includes execution state and if relevant, error information. */\nexport interface StatementStatus {\n /**\n * Statement execution state:\n * - `PENDING`: waiting for warehouse\n * - `RUNNING`: running\n * - `SUCCEEDED`: execution was successful, result data available for fetch\n * - `FAILED`: execution failed; reason for failure described in accompanying error message\n * - `CANCELED`: user canceled; can come from explicit cancel call, or timeout with\n * `on_wait_timeout=CANCEL`\n * - `CLOSED`: execution successful, and statement closed; result no longer available for fetch\n */\n state?: StatementStatus_State | undefined;\n error?: ServiceError | undefined;\n /**\n * SQLSTATE error code returned when the statement execution fails.\n * Only populated when the statement status is `FAILED`.\n */\n sqlState?: string | undefined;\n}\n\nexport const unmarshalCancelStatementResponseSchema: z.ZodType<CancelStatementResponse> =\n z.object({});\n\nexport const unmarshalChunkInfoSchema: z.ZodType<ChunkInfo> = z\n .object({\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalColumnInfoSchema: z.ZodType<ColumnInfo> = z\n .object({\n name: z.string().optional(),\n type_text: z.string().optional(),\n type_name: z.string().optional(),\n position: z.number().optional(),\n type_precision: z.number().optional(),\n type_scale: z.number().optional(),\n type_interval_type: z.string().optional(),\n })\n .transform(d => ({\n name: d.name,\n typeText: d.type_text,\n typeName: d.type_name,\n position: d.position,\n typePrecision: d.type_precision,\n typeScale: d.type_scale,\n typeIntervalType: d.type_interval_type,\n }));\n\nexport const unmarshalExternalLinkSchema: z.ZodType<ExternalLink> = z\n .object({\n external_link: z.string().optional(),\n expiration: z.string().optional(),\n http_headers: z.record(z.string(), z.string()).optional(),\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n externalLink: d.external_link,\n expiration: d.expiration,\n httpHeaders: d.http_headers,\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalResultDataSchema: z.ZodType<ResultData> = z\n .object({\n external_links: z\n .array(z.lazy(() => unmarshalExternalLinkSchema))\n .optional(),\n data_array: z.array(z.array(jsonValueSchema)).optional(),\n chunk_index: z.number().optional(),\n row_offset: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n next_chunk_index: z.number().optional(),\n next_chunk_internal_link: z.string().optional(),\n })\n .transform(d => ({\n externalLinks: d.external_links,\n dataArray: d.data_array,\n chunkIndex: d.chunk_index,\n rowOffset: d.row_offset,\n rowCount: d.row_count,\n byteCount: d.byte_count,\n nextChunkIndex: d.next_chunk_index,\n nextChunkInternalLink: d.next_chunk_internal_link,\n }));\n\nexport const unmarshalResultManifestSchema: z.ZodType<ResultManifest> = z\n .object({\n format: z.string().optional(),\n schema: z.lazy(() => unmarshalSchemaSchema).optional(),\n total_chunk_count: z.number().optional(),\n chunks: z.array(z.lazy(() => unmarshalChunkInfoSchema)).optional(),\n total_row_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n total_byte_count: z\n .union([z.number(), z.bigint(), z.string()])\n .transform(v => BigInt(v))\n .optional(),\n truncated: z.boolean().optional(),\n })\n .transform(d => ({\n format: d.format,\n schema: d.schema,\n totalChunkCount: d.total_chunk_count,\n chunks: d.chunks,\n totalRowCount: d.total_row_count,\n totalByteCount: d.total_byte_count,\n truncated: d.truncated,\n }));\n\nexport const unmarshalSchemaSchema: z.ZodType<Schema> = z\n .object({\n column_count: z.number().optional(),\n columns: z.array(z.lazy(() => unmarshalColumnInfoSchema)).optional(),\n })\n .transform(d => ({\n columnCount: d.column_count,\n columns: d.columns,\n }));\n\nexport const unmarshalServiceErrorSchema: z.ZodType<ServiceError> = z\n .object({\n error_code: z.string().optional(),\n message: z.string().optional(),\n })\n .transform(d => ({\n errorCode: d.error_code,\n message: d.message,\n }));\n\nexport const unmarshalStatementResponseSchema: z.ZodType<StatementResponse> = z\n .object({\n statement_id: z.string().optional(),\n status: z.lazy(() => unmarshalStatementStatusSchema).optional(),\n manifest: z.lazy(() => unmarshalResultManifestSchema).optional(),\n result: z.lazy(() => unmarshalResultDataSchema).optional(),\n })\n .transform(d => ({\n statementId: d.statement_id,\n status: d.status,\n manifest: d.manifest,\n result: d.result,\n }));\n\nexport const unmarshalStatementStatusSchema: z.ZodType<StatementStatus> = z\n .object({\n state: z.string().optional(),\n error: z.lazy(() => unmarshalServiceErrorSchema).optional(),\n sql_state: z.string().optional(),\n })\n .transform(d => ({\n state: d.state,\n error: d.error,\n sqlState: d.sql_state,\n }));\n\nexport const marshalCancelStatementRequestSchema: z.ZodType = z\n .object({\n statementId: z.string().optional(),\n warehouseId: z.string().optional(),\n })\n .transform(d => ({\n statement_id: d.statementId,\n warehouse_id: d.warehouseId,\n }));\n\nexport const marshalExecuteStatementRequestSchema: z.ZodType = z\n .object({\n statement: z.string().optional(),\n warehouseId: z.string().optional(),\n catalog: z.string().optional(),\n schema: z.string().optional(),\n rowLimit: z.bigint().optional(),\n byteLimit: z.bigint().optional(),\n format: z.string().optional(),\n disposition: z.string().optional(),\n waitTimeout: z.string().optional(),\n onWaitTimeout: z.string().optional(),\n parameters: z\n .array(z.lazy(() => marshalStatementParameterSchema))\n .optional(),\n queryTags: z.array(z.lazy(() => marshalQueryTagSchema)).optional(),\n })\n .transform(d => ({\n statement: d.statement,\n warehouse_id: d.warehouseId,\n catalog: d.catalog,\n schema: d.schema,\n row_limit: d.rowLimit,\n byte_limit: d.byteLimit,\n format: d.format,\n disposition: d.disposition,\n wait_timeout: d.waitTimeout,\n on_wait_timeout: d.onWaitTimeout,\n parameters: d.parameters,\n query_tags: d.queryTags,\n }));\n\nexport const marshalQueryTagSchema: z.ZodType = z\n .object({\n key: z.string().optional(),\n value: z.string().optional(),\n })\n .transform(d => ({\n key: d.key,\n value: d.value,\n }));\n\nexport const marshalStatementParameterSchema: z.ZodType = z\n .object({\n name: z.string().optional(),\n value: z.string().optional(),\n type: z.string().optional(),\n })\n .transform(d => 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AAU;CAChC,QAAQ,EAAE,QAAQ,CAAC,UAAU;CAC7B,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,aAAa,EAAE,QAAQ,CAAC,UAAU;CAClC,eAAe,EAAE,QAAQ,CAAC,UAAU;CACpC,YAAY,EACT,MAAM,EAAE,WAAW,gCAAgC,CAAC,CACpD,UAAU;CACb,WAAW,EAAE,MAAM,EAAE,WAAW,sBAAsB,CAAC,CAAC,UAAU;CACnE,CAAC,CACD,WAAU,OAAM;CACf,WAAW,EAAE;CACb,cAAc,EAAE;CAChB,SAAS,EAAE;CACX,QAAQ,EAAE;CACV,WAAW,EAAE;CACb,YAAY,EAAE;CACd,QAAQ,EAAE;CACV,aAAa,EAAE;CACf,cAAc,EAAE;CAChB,iBAAiB,EAAE;CACnB,YAAY,EAAE;CACd,YAAY,EAAE;CACf,EAAE;AAEL,MAAa,wBAAmC,EAC7C,OAAO;CACN,KAAK,EAAE,QAAQ,CAAC,UAAU;CAC1B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC7B,CAAC,CACD,WAAU,OAAM;CACf,KAAK,EAAE;CACP,OAAO,EAAE;CACV,EAAE;AAEL,MAAa,kCAA6C,EACvD,OAAO;CACN,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,MAAM,EAAE,QAAQ,CAAC,UAAU;CAC5B,CAAC,CACD,WAAU,OAAM;CACf,MAAM,EAAE;CACR,OAAO,EAAE;CACT,MAAM,EAAE;CACT,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databricks/sdk-statementexecution",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"directory": "packages/statementexecution"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@databricks/sdk-auth": ">=0.
|
|
37
|
-
"@databricks/sdk-core": ">=0.51.
|
|
38
|
-
"@databricks/sdk-options": ">=0.51.
|
|
36
|
+
"@databricks/sdk-auth": ">=0.52.0 <1.0.0",
|
|
37
|
+
"@databricks/sdk-core": ">=0.51.1 <1.0.0",
|
|
38
|
+
"@databricks/sdk-options": ">=0.51.1 <1.0.0",
|
|
39
39
|
"@js-temporal/polyfill": "^0.5.0",
|
|
40
40
|
"json-bigint": "^1.0.0",
|
|
41
41
|
"zod": "^4.3.6"
|