@databricks/sdk-statementexecution 0.34.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,58 +1,60 @@
1
- import type { JsonValue } from '@databricks/sdk-core/wkt';
2
- import { z } from 'zod';
1
+ import { z } from "zod";
2
+ import { JsonValue } from "@databricks/sdk-core/wkt";
3
+
4
+ //#region src/v1/model.d.ts
3
5
  /** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */
4
- export declare const ColumnTypeName: {
5
- readonly BOOLEAN: "BOOLEAN";
6
- readonly BYTE: "BYTE";
7
- readonly SHORT: "SHORT";
8
- readonly INT: "INT";
9
- readonly LONG: "LONG";
10
- readonly FLOAT: "FLOAT";
11
- readonly DOUBLE: "DOUBLE";
12
- readonly DATE: "DATE";
13
- readonly TIMESTAMP: "TIMESTAMP";
14
- readonly STRING: "STRING";
15
- readonly BINARY: "BINARY";
16
- readonly DECIMAL: "DECIMAL";
17
- readonly INTERVAL: "INTERVAL";
18
- readonly ARRAY: "ARRAY";
19
- readonly STRUCT: "STRUCT";
20
- readonly MAP: "MAP";
21
- readonly CHAR: "CHAR";
22
- readonly NULL: "NULL";
23
- readonly USER_DEFINED_TYPE: "USER_DEFINED_TYPE";
6
+ declare const ColumnTypeName: {
7
+ readonly BOOLEAN: "BOOLEAN";
8
+ readonly BYTE: "BYTE";
9
+ readonly SHORT: "SHORT";
10
+ readonly INT: "INT";
11
+ readonly LONG: "LONG";
12
+ readonly FLOAT: "FLOAT";
13
+ readonly DOUBLE: "DOUBLE";
14
+ readonly DATE: "DATE";
15
+ readonly TIMESTAMP: "TIMESTAMP";
16
+ readonly STRING: "STRING";
17
+ readonly BINARY: "BINARY";
18
+ readonly DECIMAL: "DECIMAL";
19
+ readonly INTERVAL: "INTERVAL";
20
+ readonly ARRAY: "ARRAY";
21
+ readonly STRUCT: "STRUCT";
22
+ readonly MAP: "MAP";
23
+ readonly CHAR: "CHAR";
24
+ readonly NULL: "NULL";
25
+ readonly USER_DEFINED_TYPE: "USER_DEFINED_TYPE";
24
26
  };
25
- export type ColumnTypeName = (typeof ColumnTypeName)[keyof typeof ColumnTypeName] | (string & {});
26
- export declare const Disposition: {
27
- readonly FETCH_DISPOSITION_UNSPECIFIED: "FETCH_DISPOSITION_UNSPECIFIED";
28
- readonly INLINE: "INLINE";
29
- readonly EXTERNAL_LINKS: "EXTERNAL_LINKS";
27
+ type ColumnTypeName = (typeof ColumnTypeName)[keyof typeof ColumnTypeName] | (string & {});
28
+ declare const Disposition: {
29
+ readonly FETCH_DISPOSITION_UNSPECIFIED: "FETCH_DISPOSITION_UNSPECIFIED";
30
+ readonly INLINE: "INLINE";
31
+ readonly EXTERNAL_LINKS: "EXTERNAL_LINKS";
30
32
  };
31
- export type Disposition = (typeof Disposition)[keyof typeof Disposition] | (string & {});
32
- export declare const Format: {
33
- readonly FORMAT_UNSPECIFIED: "FORMAT_UNSPECIFIED";
34
- readonly JSON_ARRAY: "JSON_ARRAY";
35
- readonly ARROW_STREAM: "ARROW_STREAM";
36
- readonly CSV: "CSV";
33
+ type Disposition = (typeof Disposition)[keyof typeof Disposition] | (string & {});
34
+ declare const Format: {
35
+ readonly FORMAT_UNSPECIFIED: "FORMAT_UNSPECIFIED";
36
+ readonly JSON_ARRAY: "JSON_ARRAY";
37
+ readonly ARROW_STREAM: "ARROW_STREAM";
38
+ readonly CSV: "CSV";
37
39
  };
38
- export type Format = (typeof Format)[keyof typeof Format] | (string & {});
39
- export declare const ServiceErrorCode: {
40
- readonly UNKNOWN: "UNKNOWN";
41
- readonly INTERNAL_ERROR: "INTERNAL_ERROR";
42
- readonly TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
43
- readonly IO_ERROR: "IO_ERROR";
44
- readonly BAD_REQUEST: "BAD_REQUEST";
45
- readonly SERVICE_UNDER_MAINTENANCE: "SERVICE_UNDER_MAINTENANCE";
46
- readonly WORKSPACE_TEMPORARILY_UNAVAILABLE: "WORKSPACE_TEMPORARILY_UNAVAILABLE";
47
- readonly DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED";
48
- readonly CANCELLED: "CANCELLED";
49
- readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED";
50
- readonly ABORTED: "ABORTED";
51
- readonly NOT_FOUND: "NOT_FOUND";
52
- readonly ALREADY_EXISTS: "ALREADY_EXISTS";
53
- readonly UNAUTHENTICATED: "UNAUTHENTICATED";
40
+ type Format = (typeof Format)[keyof typeof Format] | (string & {});
41
+ declare const ServiceErrorCode: {
42
+ readonly UNKNOWN: "UNKNOWN";
43
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
44
+ readonly TEMPORARILY_UNAVAILABLE: "TEMPORARILY_UNAVAILABLE";
45
+ readonly IO_ERROR: "IO_ERROR";
46
+ readonly BAD_REQUEST: "BAD_REQUEST";
47
+ readonly SERVICE_UNDER_MAINTENANCE: "SERVICE_UNDER_MAINTENANCE";
48
+ readonly WORKSPACE_TEMPORARILY_UNAVAILABLE: "WORKSPACE_TEMPORARILY_UNAVAILABLE";
49
+ readonly DEADLINE_EXCEEDED: "DEADLINE_EXCEEDED";
50
+ readonly CANCELLED: "CANCELLED";
51
+ readonly RESOURCE_EXHAUSTED: "RESOURCE_EXHAUSTED";
52
+ readonly ABORTED: "ABORTED";
53
+ readonly NOT_FOUND: "NOT_FOUND";
54
+ readonly ALREADY_EXISTS: "ALREADY_EXISTS";
55
+ readonly UNAUTHENTICATED: "UNAUTHENTICATED";
54
56
  };
55
- export type ServiceErrorCode = (typeof ServiceErrorCode)[keyof typeof ServiceErrorCode] | (string & {});
57
+ type ServiceErrorCode = (typeof ServiceErrorCode)[keyof typeof ServiceErrorCode] | (string & {});
56
58
  /**
57
59
  * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't
58
60
  * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.
@@ -60,320 +62,319 @@ export type ServiceErrorCode = (typeof ServiceErrorCode)[keyof typeof ServiceErr
60
62
  * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,
61
63
  * the statement execution is canceled and the call returns with a `CANCELED` state.
62
64
  */
63
- export declare const TimeoutAction: {
64
- readonly TIMEOUT_ACTION_UNSPECIFIED: "TIMEOUT_ACTION_UNSPECIFIED";
65
- readonly CONTINUE: "CONTINUE";
66
- readonly CANCEL: "CANCEL";
65
+ declare const TimeoutAction: {
66
+ readonly TIMEOUT_ACTION_UNSPECIFIED: "TIMEOUT_ACTION_UNSPECIFIED";
67
+ readonly CONTINUE: "CONTINUE";
68
+ readonly CANCEL: "CANCEL";
67
69
  };
68
- export type TimeoutAction = (typeof TimeoutAction)[keyof typeof TimeoutAction] | (string & {});
69
- export declare const StatementStatus_State: {
70
- readonly STATE_UNSPECIFIED: "STATE_UNSPECIFIED";
71
- readonly PENDING: "PENDING";
72
- readonly RUNNING: "RUNNING";
73
- readonly SUCCEEDED: "SUCCEEDED";
74
- readonly FAILED: "FAILED";
75
- readonly CANCELED: "CANCELED";
76
- readonly CLOSED: "CLOSED";
70
+ type TimeoutAction = (typeof TimeoutAction)[keyof typeof TimeoutAction] | (string & {});
71
+ declare const StatementStatus_State: {
72
+ readonly STATE_UNSPECIFIED: "STATE_UNSPECIFIED";
73
+ readonly PENDING: "PENDING";
74
+ readonly RUNNING: "RUNNING";
75
+ readonly SUCCEEDED: "SUCCEEDED";
76
+ readonly FAILED: "FAILED";
77
+ readonly CANCELED: "CANCELED";
78
+ readonly CLOSED: "CLOSED";
77
79
  };
78
- export type StatementStatus_State = (typeof StatementStatus_State)[keyof typeof StatementStatus_State] | (string & {});
79
- export interface CancelStatementRequest {
80
- /**
81
- * The statement ID is returned upon successfully submitting a SQL statement, and is a required
82
- * reference for all subsequent calls.
83
- */
84
- statementId?: string | undefined;
80
+ type StatementStatus_State = (typeof StatementStatus_State)[keyof typeof StatementStatus_State] | (string & {});
81
+ interface CancelStatementRequest {
82
+ /**
83
+ * The statement ID is returned upon successfully submitting a SQL statement, and is a required
84
+ * reference for all subsequent calls.
85
+ */
86
+ statementId?: string | undefined;
85
87
  }
86
- export interface CancelStatementResponse {
88
+ interface CancelStatementResponse {}
89
+ interface ChunkInfo {
90
+ /** The position within the sequence of result set chunks. */
91
+ chunkIndex?: number | undefined;
92
+ /** The starting row offset within the result set. */
93
+ rowOffset?: bigint | undefined;
94
+ /** The number of rows within the result chunk. */
95
+ rowCount?: bigint | undefined;
96
+ /**
97
+ * The number of bytes in the result chunk. This field is not available when using `INLINE`
98
+ * disposition.
99
+ */
100
+ byteCount?: bigint | undefined;
101
+ /**
102
+ * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
103
+ * more chunks. The next chunk can be fetched with a
104
+ * :method:statementexecution/getstatementresultchunkn request.
105
+ */
106
+ nextChunkIndex?: number | undefined;
107
+ /**
108
+ * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
109
+ * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
110
+ * treated as an opaque link. This is an alternative to using `next_chunk_index`.
111
+ */
112
+ nextChunkInternalLink?: string | undefined;
87
113
  }
88
- export interface ChunkInfo {
89
- /** The position within the sequence of result set chunks. */
90
- chunkIndex?: number | undefined;
91
- /** The starting row offset within the result set. */
92
- rowOffset?: bigint | undefined;
93
- /** The number of rows within the result chunk. */
94
- rowCount?: bigint | undefined;
95
- /**
96
- * The number of bytes in the result chunk. This field is not available when using `INLINE`
97
- * disposition.
98
- */
99
- byteCount?: bigint | undefined;
100
- /**
101
- * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
102
- * more chunks. The next chunk can be fetched with a
103
- * :method:statementexecution/getstatementresultchunkn request.
104
- */
105
- nextChunkIndex?: number | undefined;
106
- /**
107
- * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
108
- * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
109
- * treated as an opaque link. This is an alternative to using `next_chunk_index`.
110
- */
111
- nextChunkInternalLink?: string | undefined;
114
+ interface ColumnInfo {
115
+ /** The name of the column. */
116
+ name?: string | undefined;
117
+ /** The full SQL type specification. */
118
+ typeText?: string | undefined;
119
+ /** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */
120
+ typeName?: ColumnTypeName | undefined;
121
+ /** The ordinal position of the column (starting at position 0). */
122
+ position?: number | undefined;
123
+ /** Specifies the number of digits in a number. This applies to the DECIMAL type. */
124
+ typePrecision?: number | undefined;
125
+ /** Specifies the number of digits to the right of the decimal point in a number. This applies to the DECIMAL type. */
126
+ typeScale?: number | undefined;
127
+ /** The format of the interval type. */
128
+ typeIntervalType?: string | undefined;
112
129
  }
113
- export interface ColumnInfo {
114
- /** The name of the column. */
115
- name?: string | undefined;
116
- /** The full SQL type specification. */
117
- typeText?: string | undefined;
118
- /** The name of the base data type. This doesn't include details for complex types such as STRUCT, MAP or ARRAY. */
119
- typeName?: ColumnTypeName | undefined;
120
- /** The ordinal position of the column (starting at position 0). */
121
- position?: number | undefined;
122
- /** Specifies the number of digits in a number. This applies to the DECIMAL type. */
123
- typePrecision?: number | undefined;
124
- /** Specifies the number of digits to the right of the decimal point in a number. This applies to the DECIMAL type. */
125
- typeScale?: number | undefined;
126
- /** The format of the interval type. */
127
- typeIntervalType?: string | undefined;
130
+ interface ExecuteStatementRequest {
131
+ /**
132
+ * The SQL statement to execute. The statement can optionally be parameterized, see `parameters`.
133
+ * The maximum query text size is 16 MiB.
134
+ */
135
+ statement?: string | undefined;
136
+ /**
137
+ * Warehouse upon which to execute a statement. See also
138
+ * [What are SQL warehouses?](https://docs.databricks.com/sql/admin/warehouse-type.html)
139
+ */
140
+ warehouseId?: string | undefined;
141
+ /**
142
+ * Sets default catalog for statement execution, similar to
143
+ * [`USE CATALOG`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html)
144
+ * in SQL.
145
+ */
146
+ catalog?: string | undefined;
147
+ /**
148
+ * Sets default schema for statement execution, similar to
149
+ * [`USE SCHEMA`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html)
150
+ * in SQL.
151
+ */
152
+ schema?: string | undefined;
153
+ /**
154
+ * Applies the given row limit to the statement's result set, but unlike the `LIMIT` clause in SQL,
155
+ * it also sets the `truncated` field in the response to indicate whether the result was trimmed due to the limit or
156
+ * not.
157
+ */
158
+ rowLimit?: bigint | undefined;
159
+ /**
160
+ * Applies the given byte limit to the statement's result size. Byte counts are based on internal data
161
+ * representations and might not match the final size in the requested `format`. If the result was truncated due to
162
+ * the byte limit, then `truncated` in the response is set to `true`.
163
+ * When using `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is applied if `byte_limit` is not
164
+ * explicitly set.
165
+ */
166
+ byteLimit?: bigint | undefined;
167
+ /**
168
+ * Statement execution supports three result formats: `JSON_ARRAY` (default), `ARROW_STREAM`, and `CSV`.
169
+ *
170
+ * Important: The formats `ARROW_STREAM` and `CSV` are supported only with `EXTERNAL_LINKS` disposition.
171
+ * `JSON_ARRAY` is supported in `INLINE` and `EXTERNAL_LINKS` disposition.
172
+ *
173
+ * When specifying `format=JSON_ARRAY`, result data will be formatted as an array of arrays of values, where each
174
+ * value is either the *string representation* of a value, or `null`.
175
+ * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)` would
176
+ * look like this:
177
+ *
178
+ * ```
179
+ * [
180
+ * [ "id-1", "1", null ],
181
+ * [ "id-2", "2", null ],
182
+ * [ "id-3", "3", null ],
183
+ * ]
184
+ * ```
185
+ *
186
+ * When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`, each chunk in the result contains compact
187
+ * JSON with no indentation or extra whitespace.
188
+ *
189
+ * When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be formatted
190
+ * as Apache Arrow Stream. See the
191
+ * [Apache Arrow streaming format](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format).
192
+ *
193
+ * When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be a CSV according to
194
+ * [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180) standard.
195
+ * All the columns values will have *string representation* similar to the `JSON_ARRAY` format, and `null` values will
196
+ * be encoded as “null”.
197
+ * Only the first chunk in the result would contain a header row with column names.
198
+ * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null as nullCol FROM range(3)` would
199
+ * look like this:
200
+ *
201
+ * ```
202
+ * strCol,intCol,nullCol
203
+ * id-1,1,null
204
+ * id-2,2,null
205
+ * id-3,3,null
206
+ * ```
207
+ */
208
+ format?: Format | undefined;
209
+ /**
210
+ * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.
211
+ *
212
+ * Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY` format, in a series
213
+ * of chunks. If a given statement produces a result set with a size larger than 25 MiB,
214
+ * that statement execution is aborted, and no result set will be available.
215
+ *
216
+ * **NOTE**
217
+ * Byte limits are computed based upon internal representations of the result set data, and might not match the sizes
218
+ * visible in JSON responses.
219
+ *
220
+ * Statements executed with `EXTERNAL_LINKS` disposition will return result data as external links: URLs that point
221
+ * to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` disposition allows statements to generate
222
+ * arbitrarily sized result sets for fetching up to 100 GiB. The resulting links have two important properties:
223
+ *
224
+ * 1. They point to resources _external_ to the <Databricks> compute; therefore any associated authentication
225
+ * information (typically a personal access token, OAuth token, or similar) _must be removed_ when fetching from
226
+ * these links.
227
+ *
228
+ * 2. These are URLs
229
+ * with a specific expiration, indicated in the response. The behavior when attempting to use an expired link is
230
+ * cloud specific.
231
+ */
232
+ disposition?: Disposition | undefined;
233
+ /**
234
+ * 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
235
+ * value between 5 and 50.
236
+ *
237
+ * When set to `0s`, the statement will execute in asynchronous mode and the call will not wait for the execution to
238
+ * finish. In this case, the call returns directly with `PENDING` state and a statement ID which can be used for
239
+ * polling with :method:statementexecution/getStatement.
240
+ *
241
+ * When set between 5 and 50 seconds, the call will behave synchronously up to this timeout and wait for the statement
242
+ * execution to finish. If the execution finishes within this time, the call returns immediately with a manifest and
243
+ * result data (or a `FAILED` state in case of an execution error). If the statement takes longer to execute,
244
+ * `on_wait_timeout` determines what should happen after the timeout is reached.
245
+ */
246
+ waitTimeout?: string | undefined;
247
+ /**
248
+ * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't
249
+ * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.
250
+ * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID
251
+ * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,
252
+ * the statement execution is canceled and the call returns with a `CANCELED` state.
253
+ */
254
+ onWaitTimeout?: TimeoutAction | undefined;
255
+ /**
256
+ * A list of parameters to pass into a SQL statement containing parameter markers. A
257
+ * parameter consists of a name, a value, and optionally a type. To represent a NULL
258
+ * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field
259
+ * is omitted, the value is interpreted as a string.
260
+ *
261
+ * If the type is given, parameters will be checked for type correctness according
262
+ * to the given type. A value is correct if the provided string can be converted to
263
+ * the requested type using the `cast` function. The exact semantics are described in
264
+ * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.
265
+ *
266
+ * For example, the following statement contains two parameters, `my_name` and `my_date`:
267
+ *
268
+ * ```
269
+ * SELECT * FROM my_table WHERE name = :my_name AND date = :my_date
270
+ * ```
271
+ *
272
+ * The parameters can be passed in the request body as follows:
273
+ *
274
+ * `
275
+ * {
276
+ * ...,
277
+ * "statement": "SELECT * FROM my_table WHERE name = :my_name AND date = :my_date",
278
+ * "parameters": [
279
+ * { "name": "my_name", "value": "the name" },
280
+ * { "name": "my_date", "value": "2020-01-01", "type": "DATE" }
281
+ * ]
282
+ * }
283
+ * `
284
+ *
285
+ * Currently, positional parameters denoted by a `?` marker are not supported by the
286
+ * Databricks SQL Statement Execution API.
287
+ *
288
+ * Also see the section [Parameter markers](https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html) of the SQL language reference.
289
+ */
290
+ parameters?: StatementParameter[] | undefined;
291
+ /**
292
+ * An array of query tags to annotate a SQL statement. A query tag
293
+ * consists of a non-empty key and, optionally, a value. To represent a NULL
294
+ * value, either omit the `value` field or manually set it to `null` or white space.
295
+ * Refer to the SQL language reference for the format specification of query tags.
296
+ * There's no significance to the order of tags. Only one value per key will be recorded.
297
+ * A sequence in excess of 20 query tags will be coerced to 20.
298
+ * Example:
299
+ *
300
+ * {
301
+ * ...,
302
+ * "query_tags": [
303
+ * { "key": "team", "value": "eng" },
304
+ * { "key": "some key only tag" }
305
+ * ]
306
+ * }
307
+ */
308
+ queryTags?: QueryTag[] | undefined;
128
309
  }
129
- export interface ExecuteStatementRequest {
130
- /**
131
- * The SQL statement to execute. The statement can optionally be parameterized, see `parameters`.
132
- * The maximum query text size is 16 MiB.
133
- */
134
- statement?: string | undefined;
135
- /**
136
- * Warehouse upon which to execute a statement. See also
137
- * [What are SQL warehouses?](https://docs.databricks.com/sql/admin/warehouse-type.html)
138
- */
139
- warehouseId?: string | undefined;
140
- /**
141
- * Sets default catalog for statement execution, similar to
142
- * [`USE CATALOG`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-catalog.html)
143
- * in SQL.
144
- */
145
- catalog?: string | undefined;
146
- /**
147
- * Sets default schema for statement execution, similar to
148
- * [`USE SCHEMA`](https://docs.databricks.com/sql/language-manual/sql-ref-syntax-ddl-use-schema.html)
149
- * in SQL.
150
- */
151
- schema?: string | undefined;
152
- /**
153
- * Applies the given row limit to the statement's result set, but unlike the `LIMIT` clause in SQL,
154
- * it also sets the `truncated` field in the response to indicate whether the result was trimmed due to the limit or
155
- * not.
156
- */
157
- rowLimit?: bigint | undefined;
158
- /**
159
- * Applies the given byte limit to the statement's result size. Byte counts are based on internal data
160
- * representations and might not match the final size in the requested `format`. If the result was truncated due to
161
- * the byte limit, then `truncated` in the response is set to `true`.
162
- * When using `EXTERNAL_LINKS` disposition, a default `byte_limit` of 100 GiB is applied if `byte_limit` is not
163
- * explicitly set.
164
- */
165
- byteLimit?: bigint | undefined;
166
- /**
167
- * Statement execution supports three result formats: `JSON_ARRAY` (default), `ARROW_STREAM`, and `CSV`.
168
- *
169
- * Important: The formats `ARROW_STREAM` and `CSV` are supported only with `EXTERNAL_LINKS` disposition.
170
- * `JSON_ARRAY` is supported in `INLINE` and `EXTERNAL_LINKS` disposition.
171
- *
172
- * When specifying `format=JSON_ARRAY`, result data will be formatted as an array of arrays of values, where each
173
- * value is either the *string representation* of a value, or `null`.
174
- * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null AS nullCol FROM range(3)` would
175
- * look like this:
176
- *
177
- * ```
178
- * [
179
- * [ "id-1", "1", null ],
180
- * [ "id-2", "2", null ],
181
- * [ "id-3", "3", null ],
182
- * ]
183
- * ```
184
- *
185
- * When specifying `format=JSON_ARRAY` and `disposition=EXTERNAL_LINKS`, each chunk in the result contains compact
186
- * JSON with no indentation or extra whitespace.
187
- *
188
- * When specifying `format=ARROW_STREAM` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be formatted
189
- * as Apache Arrow Stream. See the
190
- * [Apache Arrow streaming format](https://arrow.apache.org/docs/format/Columnar.html#ipc-streaming-format).
191
- *
192
- * When specifying `format=CSV` and `disposition=EXTERNAL_LINKS`, each chunk in the result will be a CSV according to
193
- * [RFC 4180](https://www.rfc-editor.org/rfc/rfc4180) standard.
194
- * All the columns values will have *string representation* similar to the `JSON_ARRAY` format, and `null` values will
195
- * be encoded as “null”.
196
- * Only the first chunk in the result would contain a header row with column names.
197
- * For example, the output of `SELECT concat('id-', id) AS strCol, id AS intCol, null as nullCol FROM range(3)` would
198
- * look like this:
199
- *
200
- * ```
201
- * strCol,intCol,nullCol
202
- * id-1,1,null
203
- * id-2,2,null
204
- * id-3,3,null
205
- * ```
206
- */
207
- format?: Format | undefined;
208
- /**
209
- * The fetch disposition provides two modes of fetching results: `INLINE` and `EXTERNAL_LINKS`.
210
- *
211
- * Statements executed with `INLINE` disposition will return result data inline, in `JSON_ARRAY` format, in a series
212
- * of chunks. If a given statement produces a result set with a size larger than 25 MiB,
213
- * that statement execution is aborted, and no result set will be available.
214
- *
215
- * **NOTE**
216
- * Byte limits are computed based upon internal representations of the result set data, and might not match the sizes
217
- * visible in JSON responses.
218
- *
219
- * Statements executed with `EXTERNAL_LINKS` disposition will return result data as external links: URLs that point
220
- * to cloud storage internal to the workspace. Using `EXTERNAL_LINKS` disposition allows statements to generate
221
- * arbitrarily sized result sets for fetching up to 100 GiB. The resulting links have two important properties:
222
- *
223
- * 1. They point to resources _external_ to the <Databricks> compute; therefore any associated authentication
224
- * information (typically a personal access token, OAuth token, or similar) _must be removed_ when fetching from
225
- * these links.
226
- *
227
- * 2. These are URLs
228
- * with a specific expiration, indicated in the response. The behavior when attempting to use an expired link is
229
- * cloud specific.
230
- */
231
- disposition?: Disposition | undefined;
232
- /**
233
- * 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
234
- * value between 5 and 50.
235
- *
236
- * When set to `0s`, the statement will execute in asynchronous mode and the call will not wait for the execution to
237
- * finish. In this case, the call returns directly with `PENDING` state and a statement ID which can be used for
238
- * polling with :method:statementexecution/getStatement.
239
- *
240
- * When set between 5 and 50 seconds, the call will behave synchronously up to this timeout and wait for the statement
241
- * execution to finish. If the execution finishes within this time, the call returns immediately with a manifest and
242
- * result data (or a `FAILED` state in case of an execution error). If the statement takes longer to execute,
243
- * `on_wait_timeout` determines what should happen after the timeout is reached.
244
- */
245
- waitTimeout?: string | undefined;
246
- /**
247
- * When `wait_timeout > 0s`, the call will block up to the specified time. If the statement execution doesn't
248
- * finish within this time, `on_wait_timeout` determines whether the execution should continue or be canceled.
249
- * When set to `CONTINUE`, the statement execution continues asynchronously and the call returns a statement ID
250
- * which can be used for polling with :method:statementexecution/getStatement. When set to `CANCEL`,
251
- * the statement execution is canceled and the call returns with a `CANCELED` state.
252
- */
253
- onWaitTimeout?: TimeoutAction | undefined;
254
- /**
255
- * A list of parameters to pass into a SQL statement containing parameter markers. A
256
- * parameter consists of a name, a value, and optionally a type. To represent a NULL
257
- * value, the `value` field may be omitted or set to `null` explicitly. If the `type` field
258
- * is omitted, the value is interpreted as a string.
259
- *
260
- * If the type is given, parameters will be checked for type correctness according
261
- * to the given type. A value is correct if the provided string can be converted to
262
- * the requested type using the `cast` function. The exact semantics are described in
263
- * the section [`cast` function](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.
264
- *
265
- * For example, the following statement contains two parameters, `my_name` and `my_date`:
266
- *
267
- * ```
268
- * SELECT * FROM my_table WHERE name = :my_name AND date = :my_date
269
- * ```
270
- *
271
- * The parameters can be passed in the request body as follows:
272
- *
273
- * `
274
- * {
275
- * ...,
276
- * "statement": "SELECT * FROM my_table WHERE name = :my_name AND date = :my_date",
277
- * "parameters": [
278
- * { "name": "my_name", "value": "the name" },
279
- * { "name": "my_date", "value": "2020-01-01", "type": "DATE" }
280
- * ]
281
- * }
282
- * `
283
- *
284
- * Currently, positional parameters denoted by a `?` marker are not supported by the
285
- * Databricks SQL Statement Execution API.
286
- *
287
- * Also see the section [Parameter markers](https://docs.databricks.com/sql/language-manual/sql-ref-parameter-marker.html) of the SQL language reference.
288
- */
289
- parameters?: StatementParameter[] | undefined;
290
- /**
291
- * An array of query tags to annotate a SQL statement. A query tag
292
- * consists of a non-empty key and, optionally, a value. To represent a NULL
293
- * value, either omit the `value` field or manually set it to `null` or white space.
294
- * Refer to the SQL language reference for the format specification of query tags.
295
- * There's no significance to the order of tags. Only one value per key will be recorded.
296
- * A sequence in excess of 20 query tags will be coerced to 20.
297
- * Example:
298
- *
299
- * {
300
- * ...,
301
- * "query_tags": [
302
- * { "key": "team", "value": "eng" },
303
- * { "key": "some key only tag" }
304
- * ]
305
- * }
306
- */
307
- queryTags?: QueryTag[] | undefined;
310
+ interface ExternalLink {
311
+ /**
312
+ * A URL pointing to a
313
+ * chunk of result data, hosted by an external service, with a short expiration time
314
+ * (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive
315
+ * and the client should not expose this URL in a log.
316
+ */
317
+ externalLink?: string | undefined;
318
+ /**
319
+ * Indicates the date-time that the given external link will expire and
320
+ * becomes invalid, after which point a new `external_link` must be requested.
321
+ */
322
+ expiration?: string | undefined;
323
+ /**
324
+ * HTTP headers that must be included with a GET request to the `external_link`.
325
+ * Each header is provided as a key-value pair.
326
+ * Headers are typically used to pass a decryption key to the external service.
327
+ * The values of these headers should be considered sensitive and the client should not expose
328
+ * these values in a log.
329
+ */
330
+ httpHeaders?: Record<string, string> | undefined;
331
+ /** The position within the sequence of result set chunks. */
332
+ chunkIndex?: number | undefined;
333
+ /** The starting row offset within the result set. */
334
+ rowOffset?: bigint | undefined;
335
+ /** The number of rows within the result chunk. */
336
+ rowCount?: bigint | undefined;
337
+ /**
338
+ * The number of bytes in the result chunk. This field is not available when using `INLINE`
339
+ * disposition.
340
+ */
341
+ byteCount?: bigint | undefined;
342
+ /**
343
+ * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
344
+ * more chunks. The next chunk can be fetched with a
345
+ * :method:statementexecution/getstatementresultchunkn request.
346
+ */
347
+ nextChunkIndex?: number | undefined;
348
+ /**
349
+ * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
350
+ * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
351
+ * treated as an opaque link. This is an alternative to using `next_chunk_index`.
352
+ */
353
+ nextChunkInternalLink?: string | undefined;
308
354
  }
309
- export interface ExternalLink {
310
- /**
311
- * A URL pointing to a
312
- * chunk of result data, hosted by an external service, with a short expiration time
313
- * (<= 15 minutes). As this URL contains a temporary credential, it should be considered sensitive
314
- * and the client should not expose this URL in a log.
315
- */
316
- externalLink?: string | undefined;
317
- /**
318
- * Indicates the date-time that the given external link will expire and
319
- * becomes invalid, after which point a new `external_link` must be requested.
320
- */
321
- expiration?: string | undefined;
322
- /**
323
- * HTTP headers that must be included with a GET request to the `external_link`.
324
- * Each header is provided as a key-value pair.
325
- * Headers are typically used to pass a decryption key to the external service.
326
- * The values of these headers should be considered sensitive and the client should not expose
327
- * these values in a log.
328
- */
329
- httpHeaders?: Record<string, string> | undefined;
330
- /** The position within the sequence of result set chunks. */
331
- chunkIndex?: number | undefined;
332
- /** The starting row offset within the result set. */
333
- rowOffset?: bigint | undefined;
334
- /** The number of rows within the result chunk. */
335
- rowCount?: bigint | undefined;
336
- /**
337
- * The number of bytes in the result chunk. This field is not available when using `INLINE`
338
- * disposition.
339
- */
340
- byteCount?: bigint | undefined;
341
- /**
342
- * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
343
- * more chunks. The next chunk can be fetched with a
344
- * :method:statementexecution/getstatementresultchunkn request.
345
- */
346
- nextChunkIndex?: number | undefined;
347
- /**
348
- * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
349
- * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
350
- * treated as an opaque link. This is an alternative to using `next_chunk_index`.
351
- */
352
- nextChunkInternalLink?: string | undefined;
355
+ interface GetResultDataRequest {
356
+ /**
357
+ * The statement ID is returned upon successfully submitting a SQL statement, and is a required
358
+ * reference for all subsequent calls.
359
+ */
360
+ statementId?: string | undefined;
361
+ chunkIndex?: number | undefined;
353
362
  }
354
- export interface GetResultDataRequest {
355
- /**
356
- * The statement ID is returned upon successfully submitting a SQL statement, and is a required
357
- * reference for all subsequent calls.
358
- */
359
- statementId?: string | undefined;
360
- chunkIndex?: number | undefined;
361
- }
362
- export interface GetStatementResultRequest {
363
- /**
364
- * The statement ID is returned upon successfully submitting a SQL statement, and is a required
365
- * reference for all subsequent calls.
366
- */
367
- statementId?: string | undefined;
363
+ interface GetStatementResultRequest {
364
+ /**
365
+ * The statement ID is returned upon successfully submitting a SQL statement, and is a required
366
+ * reference for all subsequent calls.
367
+ */
368
+ statementId?: string | undefined;
368
369
  }
369
370
  /**
370
371
  * * A query execution can be annotated with an optional key-value pair to
371
372
  * allow users to attribute the executions by key and optional value to filter by.
372
373
  * QueryTag is the user-facing representation.
373
374
  */
374
- export interface QueryTag {
375
- key?: string | undefined;
376
- value?: string | undefined;
375
+ interface QueryTag {
376
+ key?: string | undefined;
377
+ value?: string | undefined;
377
378
  }
378
379
  /**
379
380
  * Contains the result data of a single chunk when using `INLINE` disposition. When using
@@ -383,120 +384,122 @@ export interface QueryTag {
383
384
  * array prepares the API to return multiple links in a single response. Currently only a single
384
385
  * link is returned.)
385
386
  */
386
- export interface ResultData {
387
- externalLinks?: ExternalLink[] | undefined;
388
- /**
389
- * The `JSON_ARRAY` format is an array of arrays of values, where each non-null value is
390
- * formatted as a string. Null values are encoded as JSON `null`.
391
- */
392
- dataArray?: JsonValue[][] | undefined;
393
- /** The position within the sequence of result set chunks. */
394
- chunkIndex?: number | undefined;
395
- /** The starting row offset within the result set. */
396
- rowOffset?: bigint | undefined;
397
- /** The number of rows within the result chunk. */
398
- rowCount?: bigint | undefined;
399
- /**
400
- * The number of bytes in the result chunk. This field is not available when using `INLINE`
401
- * disposition.
402
- */
403
- byteCount?: bigint | undefined;
404
- /**
405
- * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
406
- * more chunks. The next chunk can be fetched with a
407
- * :method:statementexecution/getstatementresultchunkn request.
408
- */
409
- nextChunkIndex?: number | undefined;
410
- /**
411
- * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
412
- * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
413
- * treated as an opaque link. This is an alternative to using `next_chunk_index`.
414
- */
415
- nextChunkInternalLink?: string | undefined;
387
+ interface ResultData {
388
+ externalLinks?: ExternalLink[] | undefined;
389
+ /**
390
+ * The `JSON_ARRAY` format is an array of arrays of values, where each non-null value is
391
+ * formatted as a string. Null values are encoded as JSON `null`.
392
+ */
393
+ dataArray?: JsonValue[][] | undefined;
394
+ /** The position within the sequence of result set chunks. */
395
+ chunkIndex?: number | undefined;
396
+ /** The starting row offset within the result set. */
397
+ rowOffset?: bigint | undefined;
398
+ /** The number of rows within the result chunk. */
399
+ rowCount?: bigint | undefined;
400
+ /**
401
+ * The number of bytes in the result chunk. This field is not available when using `INLINE`
402
+ * disposition.
403
+ */
404
+ byteCount?: bigint | undefined;
405
+ /**
406
+ * When fetching, provides the `chunk_index` for the _next_ chunk. If absent, indicates there are no
407
+ * more chunks. The next chunk can be fetched with a
408
+ * :method:statementexecution/getstatementresultchunkn request.
409
+ */
410
+ nextChunkIndex?: number | undefined;
411
+ /**
412
+ * When fetching, provides a link to fetch the _next_ chunk. If absent, indicates there are no more
413
+ * chunks. This link is an absolute `path` to be joined with your `$DATABRICKS_HOST`, and should be
414
+ * treated as an opaque link. This is an alternative to using `next_chunk_index`.
415
+ */
416
+ nextChunkInternalLink?: string | undefined;
416
417
  }
417
418
  /** The result manifest provides schema and metadata for the result set. */
418
- export interface ResultManifest {
419
- format?: Format | undefined;
420
- schema?: Schema | undefined;
421
- /** The total number of chunks that the result set has been divided into. */
422
- totalChunkCount?: number | undefined;
423
- /** Array of result set chunk metadata. */
424
- chunks?: ChunkInfo[] | undefined;
425
- /** The total number of rows in the result set. */
426
- totalRowCount?: bigint | undefined;
427
- /**
428
- * The total number of bytes in the result set. This field is not available when using `INLINE`
429
- * disposition.
430
- */
431
- totalByteCount?: bigint | undefined;
432
- /** Indicates whether the result is truncated due to `row_limit` or `byte_limit`. */
433
- truncated?: boolean | undefined;
419
+ interface ResultManifest {
420
+ format?: Format | undefined;
421
+ schema?: Schema | undefined;
422
+ /** The total number of chunks that the result set has been divided into. */
423
+ totalChunkCount?: number | undefined;
424
+ /** Array of result set chunk metadata. */
425
+ chunks?: ChunkInfo[] | undefined;
426
+ /** The total number of rows in the result set. */
427
+ totalRowCount?: bigint | undefined;
428
+ /**
429
+ * The total number of bytes in the result set. This field is not available when using `INLINE`
430
+ * disposition.
431
+ */
432
+ totalByteCount?: bigint | undefined;
433
+ /** Indicates whether the result is truncated due to `row_limit` or `byte_limit`. */
434
+ truncated?: boolean | undefined;
434
435
  }
435
436
  /** The schema is an ordered list of column descriptions. */
436
- export interface Schema {
437
- columnCount?: number | undefined;
438
- columns?: ColumnInfo[] | undefined;
437
+ interface Schema {
438
+ columnCount?: number | undefined;
439
+ columns?: ColumnInfo[] | undefined;
439
440
  }
440
- export interface ServiceError {
441
- errorCode?: ServiceErrorCode | undefined;
442
- /** A brief summary of the error condition. */
443
- message?: string | undefined;
441
+ interface ServiceError {
442
+ errorCode?: ServiceErrorCode | undefined;
443
+ /** A brief summary of the error condition. */
444
+ message?: string | undefined;
444
445
  }
445
- export interface StatementParameter {
446
- /** The name of a parameter marker to be substituted in the statement. */
447
- name?: string | undefined;
448
- /** The value to substitute, represented as a string. If omitted, the value is interpreted as NULL. */
449
- value?: string | undefined;
450
- /**
451
- * The data type, given as a string. For example: `INT`, `STRING`, `DECIMAL(10,2)`.
452
- * If no type is given the type is assumed to be `STRING`. Complex types, such as
453
- * `ARRAY`, `MAP`, and `STRUCT` are not supported. For valid types, refer to the
454
- * section [Data types](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.
455
- */
456
- type?: string | undefined;
446
+ interface StatementParameter {
447
+ /** The name of a parameter marker to be substituted in the statement. */
448
+ name?: string | undefined;
449
+ /** The value to substitute, represented as a string. If omitted, the value is interpreted as NULL. */
450
+ value?: string | undefined;
451
+ /**
452
+ * The data type, given as a string. For example: `INT`, `STRING`, `DECIMAL(10,2)`.
453
+ * If no type is given the type is assumed to be `STRING`. Complex types, such as
454
+ * `ARRAY`, `MAP`, and `STRUCT` are not supported. For valid types, refer to the
455
+ * section [Data types](https://docs.databricks.com/sql/language-manual/functions/cast.html) of the SQL language reference.
456
+ */
457
+ type?: string | undefined;
457
458
  }
458
- export interface StatementResponse {
459
- /**
460
- * The statement ID is returned upon successfully submitting a SQL statement, and is a required
461
- * reference for all subsequent calls.
462
- */
463
- statementId?: string | undefined;
464
- status?: StatementStatus | undefined;
465
- manifest?: ResultManifest | undefined;
466
- result?: ResultData | undefined;
459
+ interface StatementResponse {
460
+ /**
461
+ * The statement ID is returned upon successfully submitting a SQL statement, and is a required
462
+ * reference for all subsequent calls.
463
+ */
464
+ statementId?: string | undefined;
465
+ status?: StatementStatus | undefined;
466
+ manifest?: ResultManifest | undefined;
467
+ result?: ResultData | undefined;
467
468
  }
468
469
  /** The status response includes execution state and if relevant, error information. */
469
- export interface StatementStatus {
470
- /**
471
- * Statement execution state:
472
- * - `PENDING`: waiting for warehouse
473
- * - `RUNNING`: running
474
- * - `SUCCEEDED`: execution was successful, result data available for fetch
475
- * - `FAILED`: execution failed; reason for failure described in accompanying error message
476
- * - `CANCELED`: user canceled; can come from explicit cancel call, or timeout with
477
- * `on_wait_timeout=CANCEL`
478
- * - `CLOSED`: execution successful, and statement closed; result no longer available for fetch
479
- */
480
- state?: StatementStatus_State | undefined;
481
- error?: ServiceError | undefined;
482
- /**
483
- * SQLSTATE error code returned when the statement execution fails.
484
- * Only populated when the statement status is `FAILED`.
485
- */
486
- sqlState?: string | undefined;
470
+ interface StatementStatus {
471
+ /**
472
+ * Statement execution state:
473
+ * - `PENDING`: waiting for warehouse
474
+ * - `RUNNING`: running
475
+ * - `SUCCEEDED`: execution was successful, result data available for fetch
476
+ * - `FAILED`: execution failed; reason for failure described in accompanying error message
477
+ * - `CANCELED`: user canceled; can come from explicit cancel call, or timeout with
478
+ * `on_wait_timeout=CANCEL`
479
+ * - `CLOSED`: execution successful, and statement closed; result no longer available for fetch
480
+ */
481
+ state?: StatementStatus_State | undefined;
482
+ error?: ServiceError | undefined;
483
+ /**
484
+ * SQLSTATE error code returned when the statement execution fails.
485
+ * Only populated when the statement status is `FAILED`.
486
+ */
487
+ sqlState?: string | undefined;
487
488
  }
488
- export declare const unmarshalCancelStatementResponseSchema: z.ZodType<CancelStatementResponse>;
489
- export declare const unmarshalChunkInfoSchema: z.ZodType<ChunkInfo>;
490
- export declare const unmarshalColumnInfoSchema: z.ZodType<ColumnInfo>;
491
- export declare const unmarshalExternalLinkSchema: z.ZodType<ExternalLink>;
492
- export declare const unmarshalResultDataSchema: z.ZodType<ResultData>;
493
- export declare const unmarshalResultManifestSchema: z.ZodType<ResultManifest>;
494
- export declare const unmarshalSchemaSchema: z.ZodType<Schema>;
495
- export declare const unmarshalServiceErrorSchema: z.ZodType<ServiceError>;
496
- export declare const unmarshalStatementResponseSchema: z.ZodType<StatementResponse>;
497
- export declare const unmarshalStatementStatusSchema: z.ZodType<StatementStatus>;
498
- export declare const marshalCancelStatementRequestSchema: z.ZodType;
499
- export declare const marshalExecuteStatementRequestSchema: z.ZodType;
500
- export declare const marshalQueryTagSchema: z.ZodType;
501
- export declare const marshalStatementParameterSchema: z.ZodType;
489
+ declare const unmarshalCancelStatementResponseSchema: z.ZodType<CancelStatementResponse>;
490
+ declare const unmarshalChunkInfoSchema: z.ZodType<ChunkInfo>;
491
+ declare const unmarshalColumnInfoSchema: z.ZodType<ColumnInfo>;
492
+ declare const unmarshalExternalLinkSchema: z.ZodType<ExternalLink>;
493
+ declare const unmarshalResultDataSchema: z.ZodType<ResultData>;
494
+ declare const unmarshalResultManifestSchema: z.ZodType<ResultManifest>;
495
+ declare const unmarshalSchemaSchema: z.ZodType<Schema>;
496
+ declare const unmarshalServiceErrorSchema: z.ZodType<ServiceError>;
497
+ declare const unmarshalStatementResponseSchema: z.ZodType<StatementResponse>;
498
+ declare const unmarshalStatementStatusSchema: z.ZodType<StatementStatus>;
499
+ declare const marshalCancelStatementRequestSchema: z.ZodType;
500
+ declare const marshalExecuteStatementRequestSchema: z.ZodType;
501
+ declare const marshalQueryTagSchema: z.ZodType;
502
+ declare const marshalStatementParameterSchema: z.ZodType;
503
+ //#endregion
504
+ export { CancelStatementRequest, CancelStatementResponse, ChunkInfo, ColumnInfo, ColumnTypeName, Disposition, ExecuteStatementRequest, ExternalLink, Format, GetResultDataRequest, GetStatementResultRequest, QueryTag, ResultData, ResultManifest, Schema, ServiceError, ServiceErrorCode, StatementParameter, StatementResponse, StatementStatus, StatementStatus_State, TimeoutAction, marshalCancelStatementRequestSchema, marshalExecuteStatementRequestSchema, marshalQueryTagSchema, marshalStatementParameterSchema, unmarshalCancelStatementResponseSchema, unmarshalChunkInfoSchema, unmarshalColumnInfoSchema, unmarshalExternalLinkSchema, unmarshalResultDataSchema, unmarshalResultManifestSchema, unmarshalSchemaSchema, unmarshalServiceErrorSchema, unmarshalStatementResponseSchema, unmarshalStatementStatusSchema };
502
505
  //# sourceMappingURL=model.d.ts.map