@databricks/sdk-uc-functions 0.0.0-dev → 0.1.0-dev.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/LICENSE +203 -0
- package/dist/v1/client.d.ts +61 -0
- package/dist/v1/client.d.ts.map +1 -0
- package/dist/v1/client.js +244 -0
- package/dist/v1/client.js.map +1 -0
- package/dist/v1/index.d.ts +4 -0
- package/dist/v1/index.d.ts.map +1 -0
- package/dist/v1/index.js +4 -0
- package/dist/v1/index.js.map +1 -0
- package/dist/v1/model.d.ts +384 -0
- package/dist/v1/model.d.ts.map +1 -0
- package/dist/v1/model.js +489 -0
- package/dist/v1/model.js.map +1 -0
- package/dist/v1/transport.d.ts +5 -0
- package/dist/v1/transport.d.ts.map +1 -0
- package/dist/v1/transport.js +57 -0
- package/dist/v1/transport.js.map +1 -0
- package/dist/v1/utils.d.ts +22 -0
- package/dist/v1/utils.d.ts.map +1 -0
- package/dist/v1/utils.js +113 -0
- package/dist/v1/utils.js.map +1 -0
- package/package.json +38 -4
- package/src/v1/client.ts +304 -0
- package/src/v1/index.ts +33 -0
- package/src/v1/model.ts +836 -0
- package/src/v1/transport.ts +73 -0
- package/src/v1/utils.ts +156 -0
- package/README.md +0 -1
- package/index.js +0 -1
package/src/v1/model.ts
ADDED
|
@@ -0,0 +1,836 @@
|
|
|
1
|
+
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
import {z} from 'zod';
|
|
4
|
+
|
|
5
|
+
export enum ColumnTypeName {
|
|
6
|
+
BOOLEAN = 'BOOLEAN',
|
|
7
|
+
BYTE = 'BYTE',
|
|
8
|
+
SHORT = 'SHORT',
|
|
9
|
+
INT = 'INT',
|
|
10
|
+
LONG = 'LONG',
|
|
11
|
+
FLOAT = 'FLOAT',
|
|
12
|
+
DOUBLE = 'DOUBLE',
|
|
13
|
+
DATE = 'DATE',
|
|
14
|
+
TIMESTAMP = 'TIMESTAMP',
|
|
15
|
+
STRING = 'STRING',
|
|
16
|
+
BINARY = 'BINARY',
|
|
17
|
+
DECIMAL = 'DECIMAL',
|
|
18
|
+
INTERVAL = 'INTERVAL',
|
|
19
|
+
ARRAY = 'ARRAY',
|
|
20
|
+
STRUCT = 'STRUCT',
|
|
21
|
+
MAP = 'MAP',
|
|
22
|
+
CHAR = 'CHAR',
|
|
23
|
+
NULL = 'NULL',
|
|
24
|
+
USER_DEFINED_TYPE = 'USER_DEFINED_TYPE',
|
|
25
|
+
TIMESTAMP_NTZ = 'TIMESTAMP_NTZ',
|
|
26
|
+
VARIANT = 'VARIANT',
|
|
27
|
+
GEOMETRY = 'GEOMETRY',
|
|
28
|
+
GEOGRAPHY = 'GEOGRAPHY',
|
|
29
|
+
TABLE_TYPE = 'TABLE_TYPE',
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum FunctionParameterMode {
|
|
33
|
+
IN = 'IN',
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum FunctionParameterType {
|
|
37
|
+
PARAM = 'PARAM',
|
|
38
|
+
COLUMN = 'COLUMN',
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
42
|
+
export enum FunctionInfo_ParameterStyle {
|
|
43
|
+
S = 'S',
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
47
|
+
export enum FunctionInfo_RoutineBody {
|
|
48
|
+
SQL = 'SQL',
|
|
49
|
+
/**
|
|
50
|
+
* When `EXTERNAL` is used,
|
|
51
|
+
* * The language of the routine function should be specified in the `external_language` field.
|
|
52
|
+
* * The returnParams of the function cannot be used as TABLE return type is not supported.
|
|
53
|
+
* * The getSqlDataAccess must be NO_SQL.
|
|
54
|
+
*/
|
|
55
|
+
EXTERNAL = 'EXTERNAL',
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
59
|
+
export enum FunctionInfo_SecurityType {
|
|
60
|
+
DEFINER = 'DEFINER',
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested enum name.
|
|
64
|
+
export enum FunctionInfo_SqlDataAccess {
|
|
65
|
+
CONTAINS_SQL = 'CONTAINS_SQL',
|
|
66
|
+
READS_SQL_DATA = 'READS_SQL_DATA',
|
|
67
|
+
NO_SQL = 'NO_SQL',
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** A connection that is dependent on a SQL object. */
|
|
71
|
+
export interface ConnectionDependency {
|
|
72
|
+
/** Full name of the dependent connection, in the form of __connection_name__. */
|
|
73
|
+
connectionName?: string | undefined;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface CreateFunction {
|
|
77
|
+
/** Name of function, relative to parent schema. */
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
/** Name of parent Catalog. */
|
|
80
|
+
catalogName?: string | undefined;
|
|
81
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
82
|
+
schemaName?: string | undefined;
|
|
83
|
+
/** Function input parameters. */
|
|
84
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
85
|
+
/** Scalar function return data type. */
|
|
86
|
+
dataType?: ColumnTypeName | undefined;
|
|
87
|
+
/** Pretty printed function data type. */
|
|
88
|
+
fullDataType?: string | undefined;
|
|
89
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
90
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
91
|
+
/** Function body. */
|
|
92
|
+
routineDefinition?: string | undefined;
|
|
93
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
94
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
95
|
+
/** Whether the function is deterministic. */
|
|
96
|
+
isDeterministic?: boolean | undefined;
|
|
97
|
+
/** Function SQL data access. */
|
|
98
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
99
|
+
/** Function null call. */
|
|
100
|
+
isNullCall?: boolean | undefined;
|
|
101
|
+
/** Function security type. */
|
|
102
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
103
|
+
/** Specific name of the function; Reserved for future use. */
|
|
104
|
+
specificName?: string | undefined;
|
|
105
|
+
/** Table function return parameters. */
|
|
106
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
107
|
+
/** External function name. */
|
|
108
|
+
externalName?: string | undefined;
|
|
109
|
+
/** External function language. */
|
|
110
|
+
externalLanguage?: string | undefined;
|
|
111
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
112
|
+
sqlPath?: string | undefined;
|
|
113
|
+
/** Username of current owner of the function. */
|
|
114
|
+
owner?: string | undefined;
|
|
115
|
+
/** User-provided free-form text description. */
|
|
116
|
+
comment?: string | undefined;
|
|
117
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
118
|
+
properties?: string | undefined;
|
|
119
|
+
/** function dependencies. */
|
|
120
|
+
routineDependencies?: DependencyList | undefined;
|
|
121
|
+
/** Unique identifier of parent metastore. */
|
|
122
|
+
metastoreId?: string | undefined;
|
|
123
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
124
|
+
fullName?: string | undefined;
|
|
125
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
126
|
+
createdAt?: bigint | undefined;
|
|
127
|
+
/** Username of function creator. */
|
|
128
|
+
createdBy?: string | undefined;
|
|
129
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
130
|
+
updatedAt?: bigint | undefined;
|
|
131
|
+
/** Username of user who last modified the function. */
|
|
132
|
+
updatedBy?: string | undefined;
|
|
133
|
+
/** Id of Function, relative to parent schema. */
|
|
134
|
+
functionId?: string | undefined;
|
|
135
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
136
|
+
browseOnly?: boolean | undefined;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface CreateFunctionRequest {
|
|
140
|
+
/** Partial __FunctionInfo__ specifying the function to be created. */
|
|
141
|
+
functionInfo?: CreateFunction | undefined;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/** A credential that is dependent on a SQL object. */
|
|
145
|
+
export interface CredentialDependency {
|
|
146
|
+
/** Full name of the dependent credential, in the form of __credential_name__. */
|
|
147
|
+
credentialName?: string | undefined;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface DeleteFunctionRequest {
|
|
151
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__) . */
|
|
152
|
+
fullNameArg?: string | undefined;
|
|
153
|
+
/** Force deletion even if the function is notempty. */
|
|
154
|
+
force?: boolean | undefined;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
|
|
158
|
+
export interface DeleteFunctionRequest_Response {}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* A dependency of a SQL object. One of the following fields must be defined:
|
|
162
|
+
* __table__, __function__, __connection__, __credential__, __volume__, or __secret__.
|
|
163
|
+
*/
|
|
164
|
+
export interface Dependency {
|
|
165
|
+
value?:
|
|
166
|
+
| {$case: 'table'; table: TableDependency}
|
|
167
|
+
| {$case: 'function'; function: FunctionDependency}
|
|
168
|
+
| {$case: 'connection'; connection: ConnectionDependency}
|
|
169
|
+
| {$case: 'credential'; credential: CredentialDependency}
|
|
170
|
+
| undefined;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** A list of dependencies. */
|
|
174
|
+
export interface DependencyList {
|
|
175
|
+
/** Array of dependencies. */
|
|
176
|
+
dependencies?: Dependency[] | undefined;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** A function that is dependent on a SQL object. */
|
|
180
|
+
export interface FunctionDependency {
|
|
181
|
+
/** Full name of the dependent function, in the form of __catalog_name__.__schema_name__.__function_name__. */
|
|
182
|
+
functionFullName?: string | undefined;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface FunctionInfo {
|
|
186
|
+
/** Name of function, relative to parent schema. */
|
|
187
|
+
name?: string | undefined;
|
|
188
|
+
/** Name of parent Catalog. */
|
|
189
|
+
catalogName?: string | undefined;
|
|
190
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
191
|
+
schemaName?: string | undefined;
|
|
192
|
+
/** Function input parameters. */
|
|
193
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
194
|
+
/** Scalar function return data type. */
|
|
195
|
+
dataType?: ColumnTypeName | undefined;
|
|
196
|
+
/** Pretty printed function data type. */
|
|
197
|
+
fullDataType?: string | undefined;
|
|
198
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
199
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
200
|
+
/** Function body. */
|
|
201
|
+
routineDefinition?: string | undefined;
|
|
202
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
203
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
204
|
+
/** Whether the function is deterministic. */
|
|
205
|
+
isDeterministic?: boolean | undefined;
|
|
206
|
+
/** Function SQL data access. */
|
|
207
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
208
|
+
/** Function null call. */
|
|
209
|
+
isNullCall?: boolean | undefined;
|
|
210
|
+
/** Function security type. */
|
|
211
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
212
|
+
/** Specific name of the function; Reserved for future use. */
|
|
213
|
+
specificName?: string | undefined;
|
|
214
|
+
/** Table function return parameters. */
|
|
215
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
216
|
+
/** External function name. */
|
|
217
|
+
externalName?: string | undefined;
|
|
218
|
+
/** External function language. */
|
|
219
|
+
externalLanguage?: string | undefined;
|
|
220
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
221
|
+
sqlPath?: string | undefined;
|
|
222
|
+
/** Username of current owner of the function. */
|
|
223
|
+
owner?: string | undefined;
|
|
224
|
+
/** User-provided free-form text description. */
|
|
225
|
+
comment?: string | undefined;
|
|
226
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
227
|
+
properties?: string | undefined;
|
|
228
|
+
/** function dependencies. */
|
|
229
|
+
routineDependencies?: DependencyList | undefined;
|
|
230
|
+
/** Unique identifier of parent metastore. */
|
|
231
|
+
metastoreId?: string | undefined;
|
|
232
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
233
|
+
fullName?: string | undefined;
|
|
234
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
235
|
+
createdAt?: bigint | undefined;
|
|
236
|
+
/** Username of function creator. */
|
|
237
|
+
createdBy?: string | undefined;
|
|
238
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
239
|
+
updatedAt?: bigint | undefined;
|
|
240
|
+
/** Username of user who last modified the function. */
|
|
241
|
+
updatedBy?: string | undefined;
|
|
242
|
+
/** Id of Function, relative to parent schema. */
|
|
243
|
+
functionId?: string | undefined;
|
|
244
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
245
|
+
browseOnly?: boolean | undefined;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface FunctionParameterInfo {
|
|
249
|
+
/** Name of Parameter. */
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
/** Full data type spec, SQL/catalogString text. */
|
|
252
|
+
typeText?: string | undefined;
|
|
253
|
+
/** Full data type spec, JSON-serialized. */
|
|
254
|
+
typeJson?: string | undefined;
|
|
255
|
+
/** Name of type (INT, STRUCT, MAP, etc.) */
|
|
256
|
+
typeName?: ColumnTypeName | undefined;
|
|
257
|
+
/** Digits of precision; required on Create for DecimalTypes. */
|
|
258
|
+
typePrecision?: number | undefined;
|
|
259
|
+
/** Digits to right of decimal; Required on Create for DecimalTypes. */
|
|
260
|
+
typeScale?: number | undefined;
|
|
261
|
+
/** Format of IntervalType. */
|
|
262
|
+
typeIntervalType?: string | undefined;
|
|
263
|
+
/** Ordinal position of column (starting at position 0). */
|
|
264
|
+
position?: number | undefined;
|
|
265
|
+
/** Function parameter mode. */
|
|
266
|
+
parameterMode?: FunctionParameterMode | undefined;
|
|
267
|
+
/** Function parameter type. */
|
|
268
|
+
parameterType?: FunctionParameterType | undefined;
|
|
269
|
+
/** Default value of the parameter. */
|
|
270
|
+
parameterDefault?: string | undefined;
|
|
271
|
+
/** User-provided free-form text description. */
|
|
272
|
+
comment?: string | undefined;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export interface FunctionParameterInfos {
|
|
276
|
+
parameters?: FunctionParameterInfo[] | undefined;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export interface GetFunctionRequest {
|
|
280
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). */
|
|
281
|
+
fullNameArg?: string | undefined;
|
|
282
|
+
/** Whether to include functions in the response for which the principal can only access selective metadata for */
|
|
283
|
+
includeBrowse?: boolean | undefined;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface ListFunctionsRequest {
|
|
287
|
+
/** Name of parent catalog for functions of interest. */
|
|
288
|
+
catalogName?: string | undefined;
|
|
289
|
+
/** Parent schema of functions. */
|
|
290
|
+
schemaName?: string | undefined;
|
|
291
|
+
/** Whether to include functions in the response for which the principal can only access selective metadata for */
|
|
292
|
+
includeBrowse?: boolean | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Maximum number of functions to return.
|
|
295
|
+
* If not set, all the functions are returned (not recommended).
|
|
296
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
297
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
298
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
299
|
+
*/
|
|
300
|
+
maxResults?: number | undefined;
|
|
301
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
302
|
+
pageToken?: string | undefined;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
306
|
+
export interface ListFunctionsRequest_Response {
|
|
307
|
+
/** An array of function information objects. */
|
|
308
|
+
functions?: FunctionInfo[] | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
311
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
312
|
+
*/
|
|
313
|
+
nextPageToken?: string | undefined;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/** A table that is dependent on a SQL object. */
|
|
317
|
+
export interface TableDependency {
|
|
318
|
+
/** Full name of the dependent table, in the form of __catalog_name__.__schema_name__.__table_name__. */
|
|
319
|
+
tableFullName?: string | undefined;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface UpdateFunctionRequest {
|
|
323
|
+
/** The fully-qualified name of the function (of the form __catalog_name__.__schema_name__.__function__name__). */
|
|
324
|
+
fullNameArg?: string | undefined;
|
|
325
|
+
/** Name of function, relative to parent schema. */
|
|
326
|
+
name?: string | undefined;
|
|
327
|
+
/** Name of parent Catalog. */
|
|
328
|
+
catalogName?: string | undefined;
|
|
329
|
+
/** Name of parent Schema relative to its parent Catalog. */
|
|
330
|
+
schemaName?: string | undefined;
|
|
331
|
+
/** Function input parameters. */
|
|
332
|
+
inputParams?: FunctionParameterInfos | undefined;
|
|
333
|
+
/** Scalar function return data type. */
|
|
334
|
+
dataType?: ColumnTypeName | undefined;
|
|
335
|
+
/** Pretty printed function data type. */
|
|
336
|
+
fullDataType?: string | undefined;
|
|
337
|
+
/** Function language. When **EXTERNAL** is used, the language of the routine function should be specified in the **external_language** field, and the **return_params** of the function cannot be used (as **TABLE** return type is not supported), and the **sql_data_access** field must be **NO_SQL**. */
|
|
338
|
+
routineBody?: FunctionInfo_RoutineBody | undefined;
|
|
339
|
+
/** Function body. */
|
|
340
|
+
routineDefinition?: string | undefined;
|
|
341
|
+
/** Function parameter style. **S** is the value for SQL. */
|
|
342
|
+
parameterStyle?: FunctionInfo_ParameterStyle | undefined;
|
|
343
|
+
/** Whether the function is deterministic. */
|
|
344
|
+
isDeterministic?: boolean | undefined;
|
|
345
|
+
/** Function SQL data access. */
|
|
346
|
+
sqlDataAccess?: FunctionInfo_SqlDataAccess | undefined;
|
|
347
|
+
/** Function null call. */
|
|
348
|
+
isNullCall?: boolean | undefined;
|
|
349
|
+
/** Function security type. */
|
|
350
|
+
securityType?: FunctionInfo_SecurityType | undefined;
|
|
351
|
+
/** Specific name of the function; Reserved for future use. */
|
|
352
|
+
specificName?: string | undefined;
|
|
353
|
+
/** Table function return parameters. */
|
|
354
|
+
returnParams?: FunctionParameterInfos | undefined;
|
|
355
|
+
/** External function name. */
|
|
356
|
+
externalName?: string | undefined;
|
|
357
|
+
/** External function language. */
|
|
358
|
+
externalLanguage?: string | undefined;
|
|
359
|
+
/** List of schemes whose objects can be referenced without qualification. */
|
|
360
|
+
sqlPath?: string | undefined;
|
|
361
|
+
/** Username of current owner of the function. */
|
|
362
|
+
owner?: string | undefined;
|
|
363
|
+
/** User-provided free-form text description. */
|
|
364
|
+
comment?: string | undefined;
|
|
365
|
+
/** JSON-serialized key-value pair map, encoded (escaped) as a string. */
|
|
366
|
+
properties?: string | undefined;
|
|
367
|
+
/** function dependencies. */
|
|
368
|
+
routineDependencies?: DependencyList | undefined;
|
|
369
|
+
/** Unique identifier of parent metastore. */
|
|
370
|
+
metastoreId?: string | undefined;
|
|
371
|
+
/** Full name of Function, in form of **catalog_name**.**schema_name**.**function_name** */
|
|
372
|
+
fullName?: string | undefined;
|
|
373
|
+
/** Time at which this function was created, in epoch milliseconds. */
|
|
374
|
+
createdAt?: bigint | undefined;
|
|
375
|
+
/** Username of function creator. */
|
|
376
|
+
createdBy?: string | undefined;
|
|
377
|
+
/** Time at which this function was last modified, in epoch milliseconds. */
|
|
378
|
+
updatedAt?: bigint | undefined;
|
|
379
|
+
/** Username of user who last modified the function. */
|
|
380
|
+
updatedBy?: string | undefined;
|
|
381
|
+
/** Id of Function, relative to parent schema. */
|
|
382
|
+
functionId?: string | undefined;
|
|
383
|
+
/** Indicates whether the principal is limited to retrieving metadata for the associated object through the BROWSE privilege when include_browse is enabled in the request. */
|
|
384
|
+
browseOnly?: boolean | undefined;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
export const unmarshalConnectionDependencySchema: z.ZodType<ConnectionDependency> =
|
|
388
|
+
z
|
|
389
|
+
.object({
|
|
390
|
+
connection_name: z.string().optional(),
|
|
391
|
+
})
|
|
392
|
+
.transform(d => ({
|
|
393
|
+
connectionName: d.connection_name,
|
|
394
|
+
}));
|
|
395
|
+
|
|
396
|
+
export const unmarshalCredentialDependencySchema: z.ZodType<CredentialDependency> =
|
|
397
|
+
z
|
|
398
|
+
.object({
|
|
399
|
+
credential_name: z.string().optional(),
|
|
400
|
+
})
|
|
401
|
+
.transform(d => ({
|
|
402
|
+
credentialName: d.credential_name,
|
|
403
|
+
}));
|
|
404
|
+
|
|
405
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
406
|
+
export const unmarshalDeleteFunctionRequest_ResponseSchema: z.ZodType<DeleteFunctionRequest_Response> =
|
|
407
|
+
z.object({});
|
|
408
|
+
|
|
409
|
+
export const unmarshalDependencySchema: z.ZodType<Dependency> = z
|
|
410
|
+
.object({
|
|
411
|
+
table: z.lazy(() => unmarshalTableDependencySchema).optional(),
|
|
412
|
+
function: z.lazy(() => unmarshalFunctionDependencySchema).optional(),
|
|
413
|
+
connection: z.lazy(() => unmarshalConnectionDependencySchema).optional(),
|
|
414
|
+
credential: z.lazy(() => unmarshalCredentialDependencySchema).optional(),
|
|
415
|
+
})
|
|
416
|
+
.transform(d => ({
|
|
417
|
+
value:
|
|
418
|
+
d.table !== undefined
|
|
419
|
+
? {$case: 'table' as const, table: d.table}
|
|
420
|
+
: d.function !== undefined
|
|
421
|
+
? {$case: 'function' as const, function: d.function}
|
|
422
|
+
: d.connection !== undefined
|
|
423
|
+
? {$case: 'connection' as const, connection: d.connection}
|
|
424
|
+
: d.credential !== undefined
|
|
425
|
+
? {$case: 'credential' as const, credential: d.credential}
|
|
426
|
+
: undefined,
|
|
427
|
+
}));
|
|
428
|
+
|
|
429
|
+
export const unmarshalDependencyListSchema: z.ZodType<DependencyList> = z
|
|
430
|
+
.object({
|
|
431
|
+
dependencies: z.array(z.lazy(() => unmarshalDependencySchema)).optional(),
|
|
432
|
+
})
|
|
433
|
+
.transform(d => ({
|
|
434
|
+
dependencies: d.dependencies,
|
|
435
|
+
}));
|
|
436
|
+
|
|
437
|
+
export const unmarshalFunctionDependencySchema: z.ZodType<FunctionDependency> =
|
|
438
|
+
z
|
|
439
|
+
.object({
|
|
440
|
+
function_full_name: z.string().optional(),
|
|
441
|
+
})
|
|
442
|
+
.transform(d => ({
|
|
443
|
+
functionFullName: d.function_full_name,
|
|
444
|
+
}));
|
|
445
|
+
|
|
446
|
+
export const unmarshalFunctionInfoSchema: z.ZodType<FunctionInfo> = z
|
|
447
|
+
.object({
|
|
448
|
+
name: z.string().optional(),
|
|
449
|
+
catalog_name: z.string().optional(),
|
|
450
|
+
schema_name: z.string().optional(),
|
|
451
|
+
input_params: z
|
|
452
|
+
.lazy(() => unmarshalFunctionParameterInfosSchema)
|
|
453
|
+
.optional(),
|
|
454
|
+
data_type: z.enum(ColumnTypeName).optional(),
|
|
455
|
+
full_data_type: z.string().optional(),
|
|
456
|
+
routine_body: z.enum(FunctionInfo_RoutineBody).optional(),
|
|
457
|
+
routine_definition: z.string().optional(),
|
|
458
|
+
parameter_style: z.enum(FunctionInfo_ParameterStyle).optional(),
|
|
459
|
+
is_deterministic: z.boolean().optional(),
|
|
460
|
+
sql_data_access: z.enum(FunctionInfo_SqlDataAccess).optional(),
|
|
461
|
+
is_null_call: z.boolean().optional(),
|
|
462
|
+
security_type: z.enum(FunctionInfo_SecurityType).optional(),
|
|
463
|
+
specific_name: z.string().optional(),
|
|
464
|
+
return_params: z
|
|
465
|
+
.lazy(() => unmarshalFunctionParameterInfosSchema)
|
|
466
|
+
.optional(),
|
|
467
|
+
external_name: z.string().optional(),
|
|
468
|
+
external_language: z.string().optional(),
|
|
469
|
+
sql_path: z.string().optional(),
|
|
470
|
+
owner: z.string().optional(),
|
|
471
|
+
comment: z.string().optional(),
|
|
472
|
+
properties: z.string().optional(),
|
|
473
|
+
routine_dependencies: z
|
|
474
|
+
.lazy(() => unmarshalDependencyListSchema)
|
|
475
|
+
.optional(),
|
|
476
|
+
metastore_id: z.string().optional(),
|
|
477
|
+
full_name: z.string().optional(),
|
|
478
|
+
created_at: z
|
|
479
|
+
.union([z.number(), z.bigint()])
|
|
480
|
+
.transform(v => BigInt(v))
|
|
481
|
+
.optional(),
|
|
482
|
+
created_by: z.string().optional(),
|
|
483
|
+
updated_at: z
|
|
484
|
+
.union([z.number(), z.bigint()])
|
|
485
|
+
.transform(v => BigInt(v))
|
|
486
|
+
.optional(),
|
|
487
|
+
updated_by: z.string().optional(),
|
|
488
|
+
function_id: z.string().optional(),
|
|
489
|
+
browse_only: z.boolean().optional(),
|
|
490
|
+
})
|
|
491
|
+
.transform(d => ({
|
|
492
|
+
name: d.name,
|
|
493
|
+
catalogName: d.catalog_name,
|
|
494
|
+
schemaName: d.schema_name,
|
|
495
|
+
inputParams: d.input_params,
|
|
496
|
+
dataType: d.data_type,
|
|
497
|
+
fullDataType: d.full_data_type,
|
|
498
|
+
routineBody: d.routine_body,
|
|
499
|
+
routineDefinition: d.routine_definition,
|
|
500
|
+
parameterStyle: d.parameter_style,
|
|
501
|
+
isDeterministic: d.is_deterministic,
|
|
502
|
+
sqlDataAccess: d.sql_data_access,
|
|
503
|
+
isNullCall: d.is_null_call,
|
|
504
|
+
securityType: d.security_type,
|
|
505
|
+
specificName: d.specific_name,
|
|
506
|
+
returnParams: d.return_params,
|
|
507
|
+
externalName: d.external_name,
|
|
508
|
+
externalLanguage: d.external_language,
|
|
509
|
+
sqlPath: d.sql_path,
|
|
510
|
+
owner: d.owner,
|
|
511
|
+
comment: d.comment,
|
|
512
|
+
properties: d.properties,
|
|
513
|
+
routineDependencies: d.routine_dependencies,
|
|
514
|
+
metastoreId: d.metastore_id,
|
|
515
|
+
fullName: d.full_name,
|
|
516
|
+
createdAt: d.created_at,
|
|
517
|
+
createdBy: d.created_by,
|
|
518
|
+
updatedAt: d.updated_at,
|
|
519
|
+
updatedBy: d.updated_by,
|
|
520
|
+
functionId: d.function_id,
|
|
521
|
+
browseOnly: d.browse_only,
|
|
522
|
+
}));
|
|
523
|
+
|
|
524
|
+
export const unmarshalFunctionParameterInfoSchema: z.ZodType<FunctionParameterInfo> =
|
|
525
|
+
z
|
|
526
|
+
.object({
|
|
527
|
+
name: z.string().optional(),
|
|
528
|
+
type_text: z.string().optional(),
|
|
529
|
+
type_json: z.string().optional(),
|
|
530
|
+
type_name: z.enum(ColumnTypeName).optional(),
|
|
531
|
+
type_precision: z.number().optional(),
|
|
532
|
+
type_scale: z.number().optional(),
|
|
533
|
+
type_interval_type: z.string().optional(),
|
|
534
|
+
position: z.number().optional(),
|
|
535
|
+
parameter_mode: z.enum(FunctionParameterMode).optional(),
|
|
536
|
+
parameter_type: z.enum(FunctionParameterType).optional(),
|
|
537
|
+
parameter_default: z.string().optional(),
|
|
538
|
+
comment: z.string().optional(),
|
|
539
|
+
})
|
|
540
|
+
.transform(d => ({
|
|
541
|
+
name: d.name,
|
|
542
|
+
typeText: d.type_text,
|
|
543
|
+
typeJson: d.type_json,
|
|
544
|
+
typeName: d.type_name,
|
|
545
|
+
typePrecision: d.type_precision,
|
|
546
|
+
typeScale: d.type_scale,
|
|
547
|
+
typeIntervalType: d.type_interval_type,
|
|
548
|
+
position: d.position,
|
|
549
|
+
parameterMode: d.parameter_mode,
|
|
550
|
+
parameterType: d.parameter_type,
|
|
551
|
+
parameterDefault: d.parameter_default,
|
|
552
|
+
comment: d.comment,
|
|
553
|
+
}));
|
|
554
|
+
|
|
555
|
+
export const unmarshalFunctionParameterInfosSchema: z.ZodType<FunctionParameterInfos> =
|
|
556
|
+
z
|
|
557
|
+
.object({
|
|
558
|
+
parameters: z
|
|
559
|
+
.array(z.lazy(() => unmarshalFunctionParameterInfoSchema))
|
|
560
|
+
.optional(),
|
|
561
|
+
})
|
|
562
|
+
.transform(d => ({
|
|
563
|
+
parameters: d.parameters,
|
|
564
|
+
}));
|
|
565
|
+
|
|
566
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
567
|
+
export const unmarshalListFunctionsRequest_ResponseSchema: z.ZodType<ListFunctionsRequest_Response> =
|
|
568
|
+
z
|
|
569
|
+
.object({
|
|
570
|
+
functions: z.array(z.lazy(() => unmarshalFunctionInfoSchema)).optional(),
|
|
571
|
+
next_page_token: z.string().optional(),
|
|
572
|
+
})
|
|
573
|
+
.transform(d => ({
|
|
574
|
+
functions: d.functions,
|
|
575
|
+
nextPageToken: d.next_page_token,
|
|
576
|
+
}));
|
|
577
|
+
|
|
578
|
+
export const unmarshalTableDependencySchema: z.ZodType<TableDependency> = z
|
|
579
|
+
.object({
|
|
580
|
+
table_full_name: z.string().optional(),
|
|
581
|
+
})
|
|
582
|
+
.transform(d => ({
|
|
583
|
+
tableFullName: d.table_full_name,
|
|
584
|
+
}));
|
|
585
|
+
|
|
586
|
+
export const marshalConnectionDependencySchema: z.ZodType = z
|
|
587
|
+
.object({
|
|
588
|
+
connectionName: z.string().optional(),
|
|
589
|
+
})
|
|
590
|
+
.transform(d => ({
|
|
591
|
+
connection_name: d.connectionName,
|
|
592
|
+
}));
|
|
593
|
+
|
|
594
|
+
export const marshalCreateFunctionSchema: z.ZodType = z
|
|
595
|
+
.object({
|
|
596
|
+
name: z.string().optional(),
|
|
597
|
+
catalogName: z.string().optional(),
|
|
598
|
+
schemaName: z.string().optional(),
|
|
599
|
+
inputParams: z.lazy(() => marshalFunctionParameterInfosSchema).optional(),
|
|
600
|
+
dataType: z.enum(ColumnTypeName).optional(),
|
|
601
|
+
fullDataType: z.string().optional(),
|
|
602
|
+
routineBody: z.enum(FunctionInfo_RoutineBody).optional(),
|
|
603
|
+
routineDefinition: z.string().optional(),
|
|
604
|
+
parameterStyle: z.enum(FunctionInfo_ParameterStyle).optional(),
|
|
605
|
+
isDeterministic: z.boolean().optional(),
|
|
606
|
+
sqlDataAccess: z.enum(FunctionInfo_SqlDataAccess).optional(),
|
|
607
|
+
isNullCall: z.boolean().optional(),
|
|
608
|
+
securityType: z.enum(FunctionInfo_SecurityType).optional(),
|
|
609
|
+
specificName: z.string().optional(),
|
|
610
|
+
returnParams: z.lazy(() => marshalFunctionParameterInfosSchema).optional(),
|
|
611
|
+
externalName: z.string().optional(),
|
|
612
|
+
externalLanguage: z.string().optional(),
|
|
613
|
+
sqlPath: z.string().optional(),
|
|
614
|
+
owner: z.string().optional(),
|
|
615
|
+
comment: z.string().optional(),
|
|
616
|
+
properties: z.string().optional(),
|
|
617
|
+
routineDependencies: z.lazy(() => marshalDependencyListSchema).optional(),
|
|
618
|
+
metastoreId: z.string().optional(),
|
|
619
|
+
fullName: z.string().optional(),
|
|
620
|
+
createdAt: z.bigint().optional(),
|
|
621
|
+
createdBy: z.string().optional(),
|
|
622
|
+
updatedAt: z.bigint().optional(),
|
|
623
|
+
updatedBy: z.string().optional(),
|
|
624
|
+
functionId: z.string().optional(),
|
|
625
|
+
browseOnly: z.boolean().optional(),
|
|
626
|
+
})
|
|
627
|
+
.transform(d => ({
|
|
628
|
+
name: d.name,
|
|
629
|
+
catalog_name: d.catalogName,
|
|
630
|
+
schema_name: d.schemaName,
|
|
631
|
+
input_params: d.inputParams,
|
|
632
|
+
data_type: d.dataType,
|
|
633
|
+
full_data_type: d.fullDataType,
|
|
634
|
+
routine_body: d.routineBody,
|
|
635
|
+
routine_definition: d.routineDefinition,
|
|
636
|
+
parameter_style: d.parameterStyle,
|
|
637
|
+
is_deterministic: d.isDeterministic,
|
|
638
|
+
sql_data_access: d.sqlDataAccess,
|
|
639
|
+
is_null_call: d.isNullCall,
|
|
640
|
+
security_type: d.securityType,
|
|
641
|
+
specific_name: d.specificName,
|
|
642
|
+
return_params: d.returnParams,
|
|
643
|
+
external_name: d.externalName,
|
|
644
|
+
external_language: d.externalLanguage,
|
|
645
|
+
sql_path: d.sqlPath,
|
|
646
|
+
owner: d.owner,
|
|
647
|
+
comment: d.comment,
|
|
648
|
+
properties: d.properties,
|
|
649
|
+
routine_dependencies: d.routineDependencies,
|
|
650
|
+
metastore_id: d.metastoreId,
|
|
651
|
+
full_name: d.fullName,
|
|
652
|
+
created_at: d.createdAt,
|
|
653
|
+
created_by: d.createdBy,
|
|
654
|
+
updated_at: d.updatedAt,
|
|
655
|
+
updated_by: d.updatedBy,
|
|
656
|
+
function_id: d.functionId,
|
|
657
|
+
browse_only: d.browseOnly,
|
|
658
|
+
}));
|
|
659
|
+
|
|
660
|
+
export const marshalCreateFunctionRequestSchema: z.ZodType = z
|
|
661
|
+
.object({
|
|
662
|
+
functionInfo: z.lazy(() => marshalCreateFunctionSchema).optional(),
|
|
663
|
+
})
|
|
664
|
+
.transform(d => ({
|
|
665
|
+
function_info: d.functionInfo,
|
|
666
|
+
}));
|
|
667
|
+
|
|
668
|
+
export const marshalCredentialDependencySchema: z.ZodType = z
|
|
669
|
+
.object({
|
|
670
|
+
credentialName: z.string().optional(),
|
|
671
|
+
})
|
|
672
|
+
.transform(d => ({
|
|
673
|
+
credential_name: d.credentialName,
|
|
674
|
+
}));
|
|
675
|
+
|
|
676
|
+
export const marshalDependencySchema: z.ZodType = z
|
|
677
|
+
.object({
|
|
678
|
+
value: z
|
|
679
|
+
.discriminatedUnion('$case', [
|
|
680
|
+
z.object({
|
|
681
|
+
$case: z.literal('table'),
|
|
682
|
+
table: z.lazy(() => marshalTableDependencySchema),
|
|
683
|
+
}),
|
|
684
|
+
z.object({
|
|
685
|
+
$case: z.literal('function'),
|
|
686
|
+
function: z.lazy(() => marshalFunctionDependencySchema),
|
|
687
|
+
}),
|
|
688
|
+
z.object({
|
|
689
|
+
$case: z.literal('connection'),
|
|
690
|
+
connection: z.lazy(() => marshalConnectionDependencySchema),
|
|
691
|
+
}),
|
|
692
|
+
z.object({
|
|
693
|
+
$case: z.literal('credential'),
|
|
694
|
+
credential: z.lazy(() => marshalCredentialDependencySchema),
|
|
695
|
+
}),
|
|
696
|
+
])
|
|
697
|
+
.optional(),
|
|
698
|
+
})
|
|
699
|
+
.transform(d => ({
|
|
700
|
+
...(d.value?.$case === 'table' && {table: d.value.table}),
|
|
701
|
+
...(d.value?.$case === 'function' && {function: d.value.function}),
|
|
702
|
+
...(d.value?.$case === 'connection' && {connection: d.value.connection}),
|
|
703
|
+
...(d.value?.$case === 'credential' && {credential: d.value.credential}),
|
|
704
|
+
}));
|
|
705
|
+
|
|
706
|
+
export const marshalDependencyListSchema: z.ZodType = z
|
|
707
|
+
.object({
|
|
708
|
+
dependencies: z.array(z.lazy(() => marshalDependencySchema)).optional(),
|
|
709
|
+
})
|
|
710
|
+
.transform(d => ({
|
|
711
|
+
dependencies: d.dependencies,
|
|
712
|
+
}));
|
|
713
|
+
|
|
714
|
+
export const marshalFunctionDependencySchema: z.ZodType = z
|
|
715
|
+
.object({
|
|
716
|
+
functionFullName: z.string().optional(),
|
|
717
|
+
})
|
|
718
|
+
.transform(d => ({
|
|
719
|
+
function_full_name: d.functionFullName,
|
|
720
|
+
}));
|
|
721
|
+
|
|
722
|
+
export const marshalFunctionParameterInfoSchema: z.ZodType = z
|
|
723
|
+
.object({
|
|
724
|
+
name: z.string().optional(),
|
|
725
|
+
typeText: z.string().optional(),
|
|
726
|
+
typeJson: z.string().optional(),
|
|
727
|
+
typeName: z.enum(ColumnTypeName).optional(),
|
|
728
|
+
typePrecision: z.number().optional(),
|
|
729
|
+
typeScale: z.number().optional(),
|
|
730
|
+
typeIntervalType: z.string().optional(),
|
|
731
|
+
position: z.number().optional(),
|
|
732
|
+
parameterMode: z.enum(FunctionParameterMode).optional(),
|
|
733
|
+
parameterType: z.enum(FunctionParameterType).optional(),
|
|
734
|
+
parameterDefault: z.string().optional(),
|
|
735
|
+
comment: z.string().optional(),
|
|
736
|
+
})
|
|
737
|
+
.transform(d => ({
|
|
738
|
+
name: d.name,
|
|
739
|
+
type_text: d.typeText,
|
|
740
|
+
type_json: d.typeJson,
|
|
741
|
+
type_name: d.typeName,
|
|
742
|
+
type_precision: d.typePrecision,
|
|
743
|
+
type_scale: d.typeScale,
|
|
744
|
+
type_interval_type: d.typeIntervalType,
|
|
745
|
+
position: d.position,
|
|
746
|
+
parameter_mode: d.parameterMode,
|
|
747
|
+
parameter_type: d.parameterType,
|
|
748
|
+
parameter_default: d.parameterDefault,
|
|
749
|
+
comment: d.comment,
|
|
750
|
+
}));
|
|
751
|
+
|
|
752
|
+
export const marshalFunctionParameterInfosSchema: z.ZodType = z
|
|
753
|
+
.object({
|
|
754
|
+
parameters: z
|
|
755
|
+
.array(z.lazy(() => marshalFunctionParameterInfoSchema))
|
|
756
|
+
.optional(),
|
|
757
|
+
})
|
|
758
|
+
.transform(d => ({
|
|
759
|
+
parameters: d.parameters,
|
|
760
|
+
}));
|
|
761
|
+
|
|
762
|
+
export const marshalTableDependencySchema: z.ZodType = z
|
|
763
|
+
.object({
|
|
764
|
+
tableFullName: z.string().optional(),
|
|
765
|
+
})
|
|
766
|
+
.transform(d => ({
|
|
767
|
+
table_full_name: d.tableFullName,
|
|
768
|
+
}));
|
|
769
|
+
|
|
770
|
+
export const marshalUpdateFunctionRequestSchema: z.ZodType = z
|
|
771
|
+
.object({
|
|
772
|
+
fullNameArg: z.string().optional(),
|
|
773
|
+
name: z.string().optional(),
|
|
774
|
+
catalogName: z.string().optional(),
|
|
775
|
+
schemaName: z.string().optional(),
|
|
776
|
+
inputParams: z.lazy(() => marshalFunctionParameterInfosSchema).optional(),
|
|
777
|
+
dataType: z.enum(ColumnTypeName).optional(),
|
|
778
|
+
fullDataType: z.string().optional(),
|
|
779
|
+
routineBody: z.enum(FunctionInfo_RoutineBody).optional(),
|
|
780
|
+
routineDefinition: z.string().optional(),
|
|
781
|
+
parameterStyle: z.enum(FunctionInfo_ParameterStyle).optional(),
|
|
782
|
+
isDeterministic: z.boolean().optional(),
|
|
783
|
+
sqlDataAccess: z.enum(FunctionInfo_SqlDataAccess).optional(),
|
|
784
|
+
isNullCall: z.boolean().optional(),
|
|
785
|
+
securityType: z.enum(FunctionInfo_SecurityType).optional(),
|
|
786
|
+
specificName: z.string().optional(),
|
|
787
|
+
returnParams: z.lazy(() => marshalFunctionParameterInfosSchema).optional(),
|
|
788
|
+
externalName: z.string().optional(),
|
|
789
|
+
externalLanguage: z.string().optional(),
|
|
790
|
+
sqlPath: z.string().optional(),
|
|
791
|
+
owner: z.string().optional(),
|
|
792
|
+
comment: z.string().optional(),
|
|
793
|
+
properties: z.string().optional(),
|
|
794
|
+
routineDependencies: z.lazy(() => marshalDependencyListSchema).optional(),
|
|
795
|
+
metastoreId: z.string().optional(),
|
|
796
|
+
fullName: z.string().optional(),
|
|
797
|
+
createdAt: z.bigint().optional(),
|
|
798
|
+
createdBy: z.string().optional(),
|
|
799
|
+
updatedAt: z.bigint().optional(),
|
|
800
|
+
updatedBy: z.string().optional(),
|
|
801
|
+
functionId: z.string().optional(),
|
|
802
|
+
browseOnly: z.boolean().optional(),
|
|
803
|
+
})
|
|
804
|
+
.transform(d => ({
|
|
805
|
+
full_name_arg: d.fullNameArg,
|
|
806
|
+
name: d.name,
|
|
807
|
+
catalog_name: d.catalogName,
|
|
808
|
+
schema_name: d.schemaName,
|
|
809
|
+
input_params: d.inputParams,
|
|
810
|
+
data_type: d.dataType,
|
|
811
|
+
full_data_type: d.fullDataType,
|
|
812
|
+
routine_body: d.routineBody,
|
|
813
|
+
routine_definition: d.routineDefinition,
|
|
814
|
+
parameter_style: d.parameterStyle,
|
|
815
|
+
is_deterministic: d.isDeterministic,
|
|
816
|
+
sql_data_access: d.sqlDataAccess,
|
|
817
|
+
is_null_call: d.isNullCall,
|
|
818
|
+
security_type: d.securityType,
|
|
819
|
+
specific_name: d.specificName,
|
|
820
|
+
return_params: d.returnParams,
|
|
821
|
+
external_name: d.externalName,
|
|
822
|
+
external_language: d.externalLanguage,
|
|
823
|
+
sql_path: d.sqlPath,
|
|
824
|
+
owner: d.owner,
|
|
825
|
+
comment: d.comment,
|
|
826
|
+
properties: d.properties,
|
|
827
|
+
routine_dependencies: d.routineDependencies,
|
|
828
|
+
metastore_id: d.metastoreId,
|
|
829
|
+
full_name: d.fullName,
|
|
830
|
+
created_at: d.createdAt,
|
|
831
|
+
created_by: d.createdBy,
|
|
832
|
+
updated_at: d.updatedAt,
|
|
833
|
+
updated_by: d.updatedBy,
|
|
834
|
+
function_id: d.functionId,
|
|
835
|
+
browse_only: d.browseOnly,
|
|
836
|
+
}));
|