@query-farm/vgi 0.46.0 → 0.47.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/README.md +11 -5
- package/dist/arrow/impl-arrowjs/index.d.ts +1 -1
- package/dist/arrow/impl-arrowjs/iterate.d.ts +2 -0
- package/dist/arrow/impl-flechette/index.d.ts +1 -1
- package/dist/arrow/impl-flechette/iterate.d.ts +2 -0
- package/dist/arrow/index.d.ts +1 -1
- package/dist/catalog/column-expressions.d.ts +8 -0
- package/dist/catalog/column-metadata.d.ts +11 -0
- package/dist/catalog/composite.d.ts +2 -1
- package/dist/catalog/constraints.d.ts +74 -0
- package/dist/catalog/descriptors.d.ts +21 -29
- package/dist/catalog/interface.d.ts +15 -20
- package/dist/catalog/macro-overloads.d.ts +4 -0
- package/dist/catalog/read-only.d.ts +7 -1
- package/dist/catalog/unconstrained-columns.d.ts +2 -0
- package/dist/client/client.d.ts +18 -13
- package/dist/client-entry.js +753 -103
- package/dist/client-entry.js.map +16 -14
- package/dist/functions/projection.d.ts +18 -0
- package/dist/functions/table.d.ts +6 -1
- package/dist/functions/types.d.ts +1 -0
- package/dist/generated/vgi-client.d.ts +177 -36
- package/dist/generated/vgi-protocol-schemas.d.ts +51 -1
- package/dist/generated/vgi-protocol-types.d.ts +317 -3
- package/dist/generated/vgi-service.d.ts +266 -29
- package/dist/index.core.d.ts +3 -1
- package/dist/index.js +1630 -240
- package/dist/index.js.map +41 -34
- package/dist/protocol/dispatch.d.ts +9 -9
- package/dist/protocol/handlers/aggregate.d.ts +1 -1
- package/dist/protocol/handlers/catalog/index.d.ts +1 -1
- package/dist/protocol/handlers/catalog/metadata.d.ts +1 -0
- package/dist/protocol/handlers/function.d.ts +1 -1
- package/dist/protocol/handlers/table-buffering.d.ts +1 -1
- package/dist/protocol/handlers/unimplemented.d.ts +1 -1
- package/dist/protocol/serializers/bind.d.ts +5 -1
- package/dist/protocol/types.d.ts +5 -0
- package/dist/rpc-server.d.ts +6 -6
- package/dist/serve-entry.js +1613 -447
- package/dist/serve-entry.js.map +32 -26
- package/dist/util/arrow/index.d.ts +1 -1
- package/dist/worker-cf-entry.d.ts +2 -2
- package/dist/worker-cf-entry.js +1943 -572
- package/dist/worker-cf-entry.js.map +41 -34
- package/dist/worker.d.ts +1 -1
- package/package.json +5 -4
- package/src/arrow/impl-arrowjs/index.ts +1 -1
- package/src/arrow/impl-arrowjs/iterate.ts +9 -1
- package/src/arrow/impl-arrowjs/project.ts +1 -1
- package/src/arrow/impl-flechette/index.ts +1 -1
- package/src/arrow/impl-flechette/ipc.ts +12 -0
- package/src/arrow/impl-flechette/iterate.ts +5 -0
- package/src/arrow/impl-flechette/project.ts +6 -8
- package/src/arrow/index.ts +1 -1
- package/src/catalog/column-expressions.ts +224 -0
- package/src/catalog/column-metadata.ts +151 -0
- package/src/catalog/composite.ts +5 -1
- package/src/catalog/constraints.ts +207 -0
- package/src/catalog/contents-codec.ts +6 -1
- package/src/catalog/descriptors.ts +21 -29
- package/src/catalog/interface.ts +70 -55
- package/src/catalog/macro-overloads.ts +44 -0
- package/src/catalog/read-only.ts +92 -71
- package/src/catalog/unconstrained-columns.ts +23 -0
- package/src/client/client.ts +100 -58
- package/src/codec/asd.ts +3 -1
- package/src/functions/projection.ts +207 -0
- package/src/functions/table.ts +10 -0
- package/src/functions/types.ts +1 -0
- package/src/generated/vgi-client.ts +199 -37
- package/src/generated/vgi-protocol-schemas.ts +455 -41
- package/src/generated/vgi-protocol-types.ts +879 -5
- package/src/generated/vgi-service.ts +514 -42
- package/src/http/client-bundle.ts +1 -1
- package/src/http/fetch.ts +1 -1
- package/src/index.core.ts +5 -0
- package/src/protocol/dispatch.ts +9 -9
- package/src/protocol/handlers/aggregate.ts +1 -1
- package/src/protocol/handlers/catalog/admin.ts +27 -6
- package/src/protocol/handlers/catalog/index.ts +2 -2
- package/src/protocol/handlers/catalog/macro.ts +6 -5
- package/src/protocol/handlers/catalog/metadata.ts +16 -0
- package/src/protocol/handlers/catalog/table.ts +72 -26
- package/src/protocol/handlers/catalog/view.ts +24 -3
- package/src/protocol/handlers/function.ts +67 -1
- package/src/protocol/handlers/table-buffering.ts +1 -1
- package/src/protocol/handlers/unimplemented.ts +6 -6
- package/src/protocol/serializers/bind.ts +17 -1
- package/src/protocol/types.ts +6 -0
- package/src/rpc-server.ts +9 -9
- package/src/util/arrow/index.ts +1 -1
- package/src/worker-cf-entry.ts +6 -0
- package/src/worker.ts +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type VgiSchema } from "../arrow/index.js";
|
|
2
|
+
import type { BindRequest, BindResponse } from "../protocol/types.js";
|
|
3
|
+
export declare const SCALAR_PROJECTION_PROFILE = "vgi.expression.duckdb.scalar.v1";
|
|
4
|
+
export interface ProjectionProposal {
|
|
5
|
+
bindCall: BindRequest;
|
|
6
|
+
bindResult: BindResponse;
|
|
7
|
+
expressions: Uint8Array[];
|
|
8
|
+
resultSchema: VgiSchema;
|
|
9
|
+
}
|
|
10
|
+
export interface ProjectionAcceptance {
|
|
11
|
+
acceptedIndices: number[];
|
|
12
|
+
bindResult: BindResponse | null;
|
|
13
|
+
}
|
|
14
|
+
/** Strict envelope boundary for the projection RPC and its original bind records. */
|
|
15
|
+
export declare function projectionRecord(bytes: Uint8Array, expected: VgiSchema): Record<string, any>;
|
|
16
|
+
export declare function validateProjectionOffer(result: BindResponse): void;
|
|
17
|
+
export declare function validateProjectionProposal(p: ProjectionProposal): void;
|
|
18
|
+
export declare function validateProjectionAcceptance(p: ProjectionProposal, r: ProjectionAcceptance): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VgiSchema, type VgiBatch, type VgiDataType } from "../arrow/index.js";
|
|
2
2
|
import type { OutputCollector } from "@query-farm/vgi-rpc";
|
|
3
3
|
import type { PlanResult, TableFunctionPlanRequest } from "../protocol/serializers/splits.js";
|
|
4
|
-
import type { BindRequest, InitRequest, GlobalInitResponse, TableCardinality } from "../protocol/types.js";
|
|
4
|
+
import type { BindRequest, BindRepeatability, InitRequest, GlobalInitResponse, TableCardinality } from "../protocol/types.js";
|
|
5
5
|
import type { VgiFunction, FunctionExample } from "./types.js";
|
|
6
6
|
import { type ArgumentConstraints } from "../arguments/argument-spec.js";
|
|
7
7
|
import { type PushdownFilters } from "../filter-pushdown/index.js";
|
|
@@ -81,16 +81,21 @@ export interface TableFunctionConfig<TArgs = Record<string, any>, TState = null>
|
|
|
81
81
|
onBind: (params: TableBindParams<TArgs>) => {
|
|
82
82
|
outputSchema: VgiSchema;
|
|
83
83
|
opaqueData?: Uint8Array;
|
|
84
|
+
projectionExpressionProfiles?: string[];
|
|
85
|
+
repeatability?: BindRepeatability;
|
|
84
86
|
lookupSecretTypes?: string[];
|
|
85
87
|
lookupScopes?: string[];
|
|
86
88
|
lookupNames?: string[];
|
|
87
89
|
} | Promise<{
|
|
88
90
|
outputSchema: VgiSchema;
|
|
89
91
|
opaqueData?: Uint8Array;
|
|
92
|
+
projectionExpressionProfiles?: string[];
|
|
93
|
+
repeatability?: BindRepeatability;
|
|
90
94
|
lookupSecretTypes?: string[];
|
|
91
95
|
lookupScopes?: string[];
|
|
92
96
|
lookupNames?: string[];
|
|
93
97
|
}>;
|
|
98
|
+
projection?: (params: TableBindParams<TArgs>, proposal: import("./projection.js").ProjectionProposal) => import("./projection.js").ProjectionAcceptance | Promise<import("./projection.js").ProjectionAcceptance>;
|
|
94
99
|
/** Init (optional). May be async — common when storage is HTTP-backed. */
|
|
95
100
|
onInit?: (params: {
|
|
96
101
|
args: TArgs;
|
|
@@ -236,6 +236,7 @@ export interface VgiFunction {
|
|
|
236
236
|
* function is not split-capable: the whole scan is one unit of work, and the
|
|
237
237
|
* framework answers with a single empty-payload split.
|
|
238
238
|
*/
|
|
239
|
+
projection?(proposal: import("./projection.js").ProjectionProposal): import("./projection.js").ProjectionAcceptance | Promise<import("./projection.js").ProjectionAcceptance>;
|
|
239
240
|
plan?(request: import("../protocol/serializers/splits.js").TableFunctionPlanRequest): import("../protocol/serializers/splits.js").PlanResult | Promise<import("../protocol/serializers/splits.js").PlanResult>;
|
|
240
241
|
/**
|
|
241
242
|
* Per-column statistics for this table function's output given the user's
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export type ArgumentMonotonicity = "UNKNOWN" | "CONSTANT" | "NON_DECREASING" | "STRICTLY_INCREASING" | "NON_INCREASING" | "STRICTLY_DECREASING";
|
|
2
|
+
export type BindRepeatability = "UNKNOWN" | "STABLE_WITHIN_QUERY";
|
|
2
3
|
export type DistinctDependence = "DISTINCT_DEPENDENT" | "NOT_DISTINCT_DEPENDENT";
|
|
3
4
|
export type FunctionStability = "CONSISTENT" | "VOLATILE" | "CONSISTENT_WITHIN_QUERY";
|
|
4
5
|
export type FunctionType = "SCALAR" | "TABLE" | "TABLE_BUFFERING" | "AGGREGATE";
|
|
5
6
|
export type IndexConstraintType = "NONE" | "UNIQUE" | "PRIMARY";
|
|
6
7
|
export type InvocationFunctionType = "AGGREGATE" | "SCALAR" | "TABLE" | "TABLE_BUFFERING";
|
|
8
|
+
export type LayoutCoverage = "ALL_ROWS" | "FUTURE_WRITES";
|
|
7
9
|
export type MacroType = "SCALAR" | "TABLE";
|
|
8
10
|
export type NullHandling = "DEFAULT" | "SPECIAL";
|
|
9
11
|
export type OnConflict = "ERROR" | "IGNORE" | "REPLACE";
|
|
@@ -28,11 +30,24 @@ export interface CatalogInfo {
|
|
|
28
30
|
releases: CatalogDataVersionRelease[];
|
|
29
31
|
source_url?: string | null;
|
|
30
32
|
}
|
|
33
|
+
export interface TypedValueBatch {
|
|
34
|
+
batch: Uint8Array;
|
|
35
|
+
}
|
|
36
|
+
export interface OptionState {
|
|
37
|
+
values: Uint8Array;
|
|
38
|
+
explicit_names: string[];
|
|
39
|
+
}
|
|
31
40
|
export interface SchemaInfo {
|
|
32
41
|
comment?: string | null;
|
|
33
42
|
tags: Record<string, string>;
|
|
34
43
|
path: string[];
|
|
35
44
|
estimated_object_count?: Record<string, number> | null;
|
|
45
|
+
options?: /** @ipc-record OptionState */ Uint8Array | null;
|
|
46
|
+
}
|
|
47
|
+
export interface TableLayout {
|
|
48
|
+
partition_by: Uint8Array[];
|
|
49
|
+
sorted_by: Uint8Array[];
|
|
50
|
+
coverage: LayoutCoverage;
|
|
36
51
|
}
|
|
37
52
|
export interface TableInfo {
|
|
38
53
|
comment?: string | null;
|
|
@@ -40,11 +55,8 @@ export interface TableInfo {
|
|
|
40
55
|
name: string;
|
|
41
56
|
schema_path: string[];
|
|
42
57
|
columns: Uint8Array;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
check_constraints: string[];
|
|
46
|
-
primary_key_constraints: number[][];
|
|
47
|
-
foreign_key_constraints: Uint8Array[];
|
|
58
|
+
constraints: Uint8Array[];
|
|
59
|
+
definition_revision?: Uint8Array | null;
|
|
48
60
|
write_result_modes: Record<string, string>;
|
|
49
61
|
supports_column_statistics: boolean;
|
|
50
62
|
scan_function?: Uint8Array | null;
|
|
@@ -55,7 +67,9 @@ export interface TableInfo {
|
|
|
55
67
|
cardinality_max?: number | null;
|
|
56
68
|
column_statistics?: Uint8Array | null;
|
|
57
69
|
bind_result?: Uint8Array | null;
|
|
58
|
-
required_filters: string[][];
|
|
70
|
+
required_filters: string[][][];
|
|
71
|
+
options?: /** @ipc-record OptionState */ Uint8Array | null;
|
|
72
|
+
layout?: /** @ipc-record TableLayout */ Uint8Array | null;
|
|
59
73
|
}
|
|
60
74
|
export interface ViewInfo {
|
|
61
75
|
comment?: string | null;
|
|
@@ -64,6 +78,8 @@ export interface ViewInfo {
|
|
|
64
78
|
schema_path: string[];
|
|
65
79
|
definition: string;
|
|
66
80
|
column_comments: Record<string, string>;
|
|
81
|
+
aliases: string[];
|
|
82
|
+
security: string;
|
|
67
83
|
}
|
|
68
84
|
export interface CatalogExample {
|
|
69
85
|
sql: string;
|
|
@@ -133,27 +149,63 @@ export interface FunctionInfo {
|
|
|
133
149
|
required_settings: string[];
|
|
134
150
|
required_secrets: SecretLookupEntry[];
|
|
135
151
|
}
|
|
152
|
+
export interface QueryEvaluationContext {
|
|
153
|
+
timezone: string;
|
|
154
|
+
collation: string;
|
|
155
|
+
default_order: string;
|
|
156
|
+
default_null_order: string;
|
|
157
|
+
preserve_insertion_order: boolean;
|
|
158
|
+
}
|
|
159
|
+
export interface SqlExpression {
|
|
160
|
+
sql: string;
|
|
161
|
+
profile: string;
|
|
162
|
+
schema_path: string[];
|
|
163
|
+
evaluation_context: QueryEvaluationContext;
|
|
164
|
+
}
|
|
165
|
+
export interface MacroParameter {
|
|
166
|
+
name: string;
|
|
167
|
+
declared_type?: /** @arrow-schema */ Uint8Array | null;
|
|
168
|
+
default_value?: /** @ipc-record TypedValueBatch */ Uint8Array | null;
|
|
169
|
+
default_expression?: /** @ipc-record SqlExpression */ Uint8Array | null;
|
|
170
|
+
documentation?: string | null;
|
|
171
|
+
}
|
|
172
|
+
export interface MacroOverload {
|
|
173
|
+
parameters: MacroParameter[];
|
|
174
|
+
definition: string;
|
|
175
|
+
profile: string;
|
|
176
|
+
schema_path: string[];
|
|
177
|
+
macro_type: string;
|
|
178
|
+
evaluation_context: QueryEvaluationContext;
|
|
179
|
+
}
|
|
136
180
|
export interface MacroInfo {
|
|
137
181
|
comment?: string | null;
|
|
138
182
|
tags: Record<string, string>;
|
|
139
183
|
name: string;
|
|
140
184
|
schema_path: string[];
|
|
141
185
|
macro_type: MacroType;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
186
|
+
overloads: MacroOverload[];
|
|
187
|
+
}
|
|
188
|
+
export interface CatalogObjectRef {
|
|
189
|
+
kind: string;
|
|
190
|
+
schema_path: string[];
|
|
191
|
+
name: string;
|
|
192
|
+
owner_table?: string | null;
|
|
193
|
+
}
|
|
194
|
+
export interface IndexDefinition {
|
|
195
|
+
table: Uint8Array;
|
|
196
|
+
algorithm: string;
|
|
197
|
+
keys: Uint8Array[];
|
|
198
|
+
options: Uint8Array;
|
|
199
|
+
constraint_type: IndexConstraintType;
|
|
200
|
+
associated_constraint?: /** @ipc-record CatalogObjectRef */ Uint8Array | null;
|
|
146
201
|
}
|
|
147
202
|
export interface IndexInfo {
|
|
148
203
|
comment?: string | null;
|
|
149
204
|
tags: Record<string, string>;
|
|
150
205
|
name: string;
|
|
151
206
|
schema_path: string[];
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
constraint_type: IndexConstraintType;
|
|
155
|
-
expressions: string[];
|
|
156
|
-
options: Record<string, string>;
|
|
207
|
+
definition: Uint8Array;
|
|
208
|
+
options: Uint8Array;
|
|
157
209
|
}
|
|
158
210
|
export interface AggregateBindRequest {
|
|
159
211
|
function_name: string;
|
|
@@ -324,6 +376,20 @@ export interface BindResponse {
|
|
|
324
376
|
lookup_secret_types: string[];
|
|
325
377
|
lookup_scopes: string[];
|
|
326
378
|
lookup_names: string[];
|
|
379
|
+
projection_expression_profiles: string[];
|
|
380
|
+
repeatability: BindRepeatability;
|
|
381
|
+
}
|
|
382
|
+
export interface CatalogCapabilities {
|
|
383
|
+
read: string[];
|
|
384
|
+
ddl: string[];
|
|
385
|
+
write: string[];
|
|
386
|
+
transaction: string[];
|
|
387
|
+
}
|
|
388
|
+
export interface ClientQueryCapabilities {
|
|
389
|
+
encodings: string[];
|
|
390
|
+
semantic_profiles: string[];
|
|
391
|
+
engine_version: string;
|
|
392
|
+
max_query_bytes: number;
|
|
327
393
|
}
|
|
328
394
|
export interface ClientCapabilities {
|
|
329
395
|
engine: string;
|
|
@@ -331,13 +397,25 @@ export interface ClientCapabilities {
|
|
|
331
397
|
catalogs: string[];
|
|
332
398
|
can_stream: boolean;
|
|
333
399
|
filter_encodings: string[];
|
|
400
|
+
catalog?: /** @ipc-record CatalogCapabilities */ Uint8Array | null;
|
|
401
|
+
query_pushdown?: ClientQueryCapabilities | null;
|
|
334
402
|
}
|
|
335
403
|
export interface CatalogAttachRequest {
|
|
336
404
|
name: string;
|
|
337
405
|
options?: /** @record-batch */ Uint8Array | null;
|
|
338
406
|
data_version_spec?: string | null;
|
|
339
407
|
implementation_version?: string | null;
|
|
340
|
-
client_capabilities?: ClientCapabilities | null;
|
|
408
|
+
client_capabilities?: /** @ipc-record ClientCapabilities */ Uint8Array | null;
|
|
409
|
+
}
|
|
410
|
+
export interface QueryCapabilities {
|
|
411
|
+
encoding: string;
|
|
412
|
+
semantic_profiles: string[];
|
|
413
|
+
execution_modes: string[];
|
|
414
|
+
backend_engine: string;
|
|
415
|
+
backend_version: string;
|
|
416
|
+
capability_revision: string;
|
|
417
|
+
default_evaluation_context: QueryEvaluationContext;
|
|
418
|
+
max_query_bytes: number;
|
|
341
419
|
}
|
|
342
420
|
export interface CatalogAttachResult {
|
|
343
421
|
attach_opaque_data: Uint8Array;
|
|
@@ -346,7 +424,7 @@ export interface CatalogAttachResult {
|
|
|
346
424
|
catalog_version_frozen: boolean;
|
|
347
425
|
catalog_version: number;
|
|
348
426
|
attach_opaque_data_required: boolean;
|
|
349
|
-
default_schema
|
|
427
|
+
default_schema?: string | null;
|
|
350
428
|
settings: Uint8Array[];
|
|
351
429
|
secret_types: Uint8Array[];
|
|
352
430
|
attach_catalogs: Uint8Array[];
|
|
@@ -358,6 +436,9 @@ export interface CatalogAttachResult {
|
|
|
358
436
|
resolved_data_version?: string | null;
|
|
359
437
|
resolved_implementation_version?: string | null;
|
|
360
438
|
supports_catalog_contents: boolean;
|
|
439
|
+
catalog_capabilities?: /** @ipc-record CatalogCapabilities */ Uint8Array | null;
|
|
440
|
+
selected_capabilities?: /** @ipc-record CatalogCapabilities */ Uint8Array | null;
|
|
441
|
+
query_pushdown?: QueryCapabilities | null;
|
|
361
442
|
}
|
|
362
443
|
export interface CatalogsResponse {
|
|
363
444
|
items: CatalogInfo[];
|
|
@@ -381,36 +462,74 @@ export interface CatalogCreateRequest {
|
|
|
381
462
|
on_conflict: OnConflict;
|
|
382
463
|
options?: /** @record-batch */ Uint8Array | null;
|
|
383
464
|
}
|
|
465
|
+
export interface DependencySnapshot {
|
|
466
|
+
catalog_version: number;
|
|
467
|
+
objects: Uint8Array[];
|
|
468
|
+
dependencies: Uint8Array[];
|
|
469
|
+
}
|
|
384
470
|
export interface IndexCreateRequest {
|
|
385
471
|
attach_opaque_data: Uint8Array;
|
|
386
472
|
schema_path: string[];
|
|
387
473
|
name: string;
|
|
388
|
-
|
|
389
|
-
index_type: string;
|
|
390
|
-
constraint_type: IndexConstraintType;
|
|
391
|
-
expressions: string[];
|
|
474
|
+
definition: Uint8Array;
|
|
392
475
|
on_conflict: OnConflict;
|
|
393
|
-
options: Record<string, string>;
|
|
394
476
|
transaction_opaque_data?: Uint8Array | null;
|
|
395
477
|
}
|
|
396
478
|
export interface IndexesResponse {
|
|
397
479
|
items: IndexInfo[];
|
|
398
480
|
}
|
|
481
|
+
export interface OptionDefinitions {
|
|
482
|
+
schema: Uint8Array;
|
|
483
|
+
defaults: Uint8Array;
|
|
484
|
+
create_names: string[];
|
|
485
|
+
alter_names: string[];
|
|
486
|
+
}
|
|
399
487
|
export interface MacroCreateRequest {
|
|
400
488
|
attach_opaque_data: Uint8Array;
|
|
401
489
|
schema_path: string[];
|
|
402
490
|
name: string;
|
|
403
491
|
macro_type: MacroType;
|
|
404
|
-
|
|
405
|
-
definition: string;
|
|
492
|
+
overloads: MacroOverload[];
|
|
406
493
|
on_conflict: OnConflict;
|
|
407
|
-
parameter_default_values?: /** @record-batch */ Uint8Array | null;
|
|
408
|
-
arguments_schema?: /** @arrow-schema */ Uint8Array | null;
|
|
409
494
|
transaction_opaque_data?: Uint8Array | null;
|
|
410
495
|
}
|
|
411
496
|
export interface MacrosResponse {
|
|
412
497
|
items: MacroInfo[];
|
|
413
498
|
}
|
|
499
|
+
export interface QueryObjectReference {
|
|
500
|
+
object: CatalogObjectRef;
|
|
501
|
+
expected_schema: Uint8Array;
|
|
502
|
+
}
|
|
503
|
+
export interface CatalogQueryPrepareRequest {
|
|
504
|
+
attach_opaque_data: Uint8Array;
|
|
505
|
+
encoding: string;
|
|
506
|
+
semantic_profile: string;
|
|
507
|
+
mode: string;
|
|
508
|
+
capability_revision: string;
|
|
509
|
+
query: string;
|
|
510
|
+
parameter_schema: Uint8Array;
|
|
511
|
+
evaluation_context: QueryEvaluationContext;
|
|
512
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
513
|
+
catalog_version?: number | null;
|
|
514
|
+
catalog_etag?: string | null;
|
|
515
|
+
referenced_objects: QueryObjectReference[];
|
|
516
|
+
expected_output_schema?: Uint8Array | null;
|
|
517
|
+
required_ordering: string;
|
|
518
|
+
}
|
|
519
|
+
export interface CatalogQueryPrepareResult {
|
|
520
|
+
status: string;
|
|
521
|
+
reason_code?: string | null;
|
|
522
|
+
reason_detail?: string | null;
|
|
523
|
+
prepared_query_token?: Uint8Array | null;
|
|
524
|
+
output_schema?: Uint8Array | null;
|
|
525
|
+
result_ordering?: string | null;
|
|
526
|
+
validated_catalog_version?: number | null;
|
|
527
|
+
validated_catalog_etag?: string | null;
|
|
528
|
+
context_digest?: Uint8Array | null;
|
|
529
|
+
expires_at_epoch_ms?: number | null;
|
|
530
|
+
estimated_rows?: number | null;
|
|
531
|
+
estimated_bytes?: number | null;
|
|
532
|
+
}
|
|
414
533
|
export interface FunctionsResponse {
|
|
415
534
|
items: FunctionInfo[];
|
|
416
535
|
}
|
|
@@ -423,18 +542,30 @@ export interface ViewsResponse {
|
|
|
423
542
|
export interface SchemasResponse {
|
|
424
543
|
items: SchemaInfo[];
|
|
425
544
|
}
|
|
545
|
+
export interface ConstraintsApplyRequest {
|
|
546
|
+
attach_opaque_data: Uint8Array;
|
|
547
|
+
table: Uint8Array;
|
|
548
|
+
expected_revision: Uint8Array;
|
|
549
|
+
changes: Uint8Array[];
|
|
550
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
551
|
+
}
|
|
552
|
+
export interface ConstraintSnapshot {
|
|
553
|
+
table: Uint8Array;
|
|
554
|
+
definition_revision: Uint8Array;
|
|
555
|
+
constraints: Uint8Array[];
|
|
556
|
+
}
|
|
426
557
|
export interface TableCreateRequest {
|
|
427
558
|
attach_opaque_data: Uint8Array;
|
|
428
559
|
schema_path: string[];
|
|
429
560
|
name: string;
|
|
430
561
|
columns: Uint8Array;
|
|
431
562
|
on_conflict: OnConflict;
|
|
432
|
-
|
|
433
|
-
unique_constraints: number[][];
|
|
434
|
-
check_constraints: string[];
|
|
435
|
-
primary_key_constraints: number[][];
|
|
436
|
-
foreign_key_constraints: Uint8Array[];
|
|
563
|
+
constraint_definitions: Uint8Array[];
|
|
437
564
|
transaction_opaque_data?: Uint8Array | null;
|
|
565
|
+
comment?: string | null;
|
|
566
|
+
tags?: Record<string, string> | null;
|
|
567
|
+
options?: /** @ipc-record TypedValueBatch */ Uint8Array | null;
|
|
568
|
+
layout?: /** @ipc-record TableLayout */ Uint8Array | null;
|
|
438
569
|
}
|
|
439
570
|
export interface TransactionBeginResponse {
|
|
440
571
|
transaction_opaque_data?: Uint8Array | null;
|
|
@@ -443,7 +574,7 @@ export interface CatalogVersionResponse {
|
|
|
443
574
|
version: number;
|
|
444
575
|
}
|
|
445
576
|
export interface InitRequest {
|
|
446
|
-
bind_call:
|
|
577
|
+
bind_call: Uint8Array;
|
|
447
578
|
output_schema: Uint8Array;
|
|
448
579
|
bind_opaque_data?: Uint8Array | null;
|
|
449
580
|
projection_ids?: number[] | null;
|
|
@@ -496,7 +627,7 @@ export interface TableBufferingProcessResponse {
|
|
|
496
627
|
state_id: Uint8Array;
|
|
497
628
|
}
|
|
498
629
|
export interface TableFunctionCardinalityRequest {
|
|
499
|
-
bind_call:
|
|
630
|
+
bind_call: Uint8Array;
|
|
500
631
|
bind_opaque_data?: Uint8Array | null;
|
|
501
632
|
}
|
|
502
633
|
export interface TableCardinality {
|
|
@@ -504,7 +635,7 @@ export interface TableCardinality {
|
|
|
504
635
|
max?: number | null;
|
|
505
636
|
}
|
|
506
637
|
export interface TableFunctionDynamicToStringRequest {
|
|
507
|
-
bind_call:
|
|
638
|
+
bind_call: Uint8Array;
|
|
508
639
|
bind_opaque_data?: Uint8Array | null;
|
|
509
640
|
global_execution_id: Uint8Array;
|
|
510
641
|
}
|
|
@@ -513,7 +644,7 @@ export interface TableFunctionDynamicToStringResponse {
|
|
|
513
644
|
values: string[];
|
|
514
645
|
}
|
|
515
646
|
export interface TableFunctionPlanRequest {
|
|
516
|
-
bind_call:
|
|
647
|
+
bind_call: Uint8Array;
|
|
517
648
|
bind_opaque_data?: Uint8Array | null;
|
|
518
649
|
projection_ids?: number[] | null;
|
|
519
650
|
pushdown_filters?: /** @record-batch */ Uint8Array | null;
|
|
@@ -564,8 +695,18 @@ export interface PlanResponse {
|
|
|
564
695
|
start_position?: Uint8Array | null;
|
|
565
696
|
end_position?: Uint8Array | null;
|
|
566
697
|
}
|
|
698
|
+
export interface TableFunctionProjectionRequest {
|
|
699
|
+
bind_call: Uint8Array;
|
|
700
|
+
bind_result: Uint8Array;
|
|
701
|
+
expressions: Uint8Array[];
|
|
702
|
+
result_schema: Uint8Array;
|
|
703
|
+
}
|
|
704
|
+
export interface TableFunctionProjectionResponse {
|
|
705
|
+
accepted_indices: number[];
|
|
706
|
+
bind_result?: /** @ipc-record BindResponse */ Uint8Array | null;
|
|
707
|
+
}
|
|
567
708
|
export interface TableFunctionStatisticsRequest {
|
|
568
|
-
bind_call:
|
|
709
|
+
bind_call: Uint8Array;
|
|
569
710
|
bind_opaque_data?: Uint8Array | null;
|
|
570
711
|
}
|
|
571
712
|
export declare const encodeCatalogInfo: (v: CatalogInfo) => Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Canonical fingerprint of the nested catalog wire schemas. */
|
|
2
|
-
export declare const VGI_CATALOG_CONTRACT_HASH = "
|
|
2
|
+
export declare const VGI_CATALOG_CONTRACT_HASH = "1d12ce672b43ca1510721f89637bb374d27693b100d357ac2ead99fcddc27e9f";
|
|
3
3
|
export declare const CatalogInfoSchema: import("../index.core.js").VgiSchema;
|
|
4
4
|
export declare const SchemaInfoSchema: import("../index.core.js").VgiSchema;
|
|
5
5
|
export declare const TableInfoSchema: import("../index.core.js").VgiSchema;
|
|
@@ -8,6 +8,36 @@ export declare const FunctionInfoSchema: import("../index.core.js").VgiSchema;
|
|
|
8
8
|
export declare const MacroInfoSchema: import("../index.core.js").VgiSchema;
|
|
9
9
|
export declare const IndexInfoSchema: import("../index.core.js").VgiSchema;
|
|
10
10
|
export declare const CopyFromFormatInfoSchema: import("../index.core.js").VgiSchema;
|
|
11
|
+
export declare const MacroParameterSchema: import("../index.core.js").VgiSchema;
|
|
12
|
+
export declare const MacroOverloadSchema: import("../index.core.js").VgiSchema;
|
|
13
|
+
export declare const ClientQueryCapabilitiesSchema: import("../index.core.js").VgiSchema;
|
|
14
|
+
export declare const QueryCapabilitiesSchema: import("../index.core.js").VgiSchema;
|
|
15
|
+
export declare const QueryEvaluationContextSchema: import("../index.core.js").VgiSchema;
|
|
16
|
+
export declare const QueryObjectReferenceSchema: import("../index.core.js").VgiSchema;
|
|
17
|
+
export declare const CatalogQueryPrepareRequestSchema: import("../index.core.js").VgiSchema;
|
|
18
|
+
export declare const CatalogQueryPrepareResultSchema: import("../index.core.js").VgiSchema;
|
|
19
|
+
export declare const CatalogCapabilitiesSchema: import("../index.core.js").VgiSchema;
|
|
20
|
+
export declare const CatalogMetadataChangesSchema: import("../index.core.js").VgiSchema;
|
|
21
|
+
export declare const CatalogObjectRefSchema: import("../index.core.js").VgiSchema;
|
|
22
|
+
export declare const ObjectDependencySchema: import("../index.core.js").VgiSchema;
|
|
23
|
+
export declare const DependencySnapshotSchema: import("../index.core.js").VgiSchema;
|
|
24
|
+
export declare const OptionDefinitionsSchema: import("../index.core.js").VgiSchema;
|
|
25
|
+
export declare const SqlExpressionSchema: import("../index.core.js").VgiSchema;
|
|
26
|
+
export declare const SqlStatementSchema: import("../index.core.js").VgiSchema;
|
|
27
|
+
export declare const ForeignKeyDefinitionSchema: import("../index.core.js").VgiSchema;
|
|
28
|
+
export declare const ConstraintDefinitionSchema: import("../index.core.js").VgiSchema;
|
|
29
|
+
export declare const ConstraintInfoSchema: import("../index.core.js").VgiSchema;
|
|
30
|
+
export declare const ConstraintChangeSchema: import("../index.core.js").VgiSchema;
|
|
31
|
+
export declare const ConstraintSnapshotSchema: import("../index.core.js").VgiSchema;
|
|
32
|
+
export declare const ConstraintsApplyRequestSchema: import("../index.core.js").VgiSchema;
|
|
33
|
+
export declare const IndexKeySchema: import("../index.core.js").VgiSchema;
|
|
34
|
+
export declare const IndexDefinitionSchema: import("../index.core.js").VgiSchema;
|
|
35
|
+
export declare const SortKeySchema: import("../index.core.js").VgiSchema;
|
|
36
|
+
export declare const TableLayoutSchema: import("../index.core.js").VgiSchema;
|
|
37
|
+
export declare const TableLayoutChangeSchema: import("../index.core.js").VgiSchema;
|
|
38
|
+
export declare const OptionChangesSchema: import("../index.core.js").VgiSchema;
|
|
39
|
+
export declare const OptionStateSchema: import("../index.core.js").VgiSchema;
|
|
40
|
+
export declare const RequiredFilterPathsSchema: import("../index.core.js").VgiSchema;
|
|
11
41
|
export declare const ScanFunctionResultSchema: import("../index.core.js").VgiSchema;
|
|
12
42
|
export declare const ScanBranchesResultSchema: import("../index.core.js").VgiSchema;
|
|
13
43
|
export declare const ScanBranchSchema: import("../index.core.js").VgiSchema;
|
|
@@ -44,6 +74,7 @@ export declare const TableBufferingProcessRequestSchema: import("../index.core.j
|
|
|
44
74
|
export declare const TableFunctionCardinalityRequestSchema: import("../index.core.js").VgiSchema;
|
|
45
75
|
export declare const TableFunctionDynamicToStringRequestSchema: import("../index.core.js").VgiSchema;
|
|
46
76
|
export declare const TableFunctionPlanRequestSchema: import("../index.core.js").VgiSchema;
|
|
77
|
+
export declare const TableFunctionProjectionRequestSchema: import("../index.core.js").VgiSchema;
|
|
47
78
|
export declare const TableFunctionStatisticsRequestSchema: import("../index.core.js").VgiSchema;
|
|
48
79
|
export declare const AggregateBindResultSchema: import("../index.core.js").VgiSchema;
|
|
49
80
|
export declare const AggregateCombineResultSchema: import("../index.core.js").VgiSchema;
|
|
@@ -62,7 +93,9 @@ export declare const CatalogAttachResultSchema: import("../index.core.js").VgiSc
|
|
|
62
93
|
export declare const CatalogCatalogsResultSchema: import("../index.core.js").VgiSchema;
|
|
63
94
|
export declare const CatalogContentsResultSchema: import("../index.core.js").VgiSchema;
|
|
64
95
|
export declare const CatalogCopyFromFormatsResultSchema: import("../index.core.js").VgiSchema;
|
|
96
|
+
export declare const CatalogDependenciesResultSchema: import("../index.core.js").VgiSchema;
|
|
65
97
|
export declare const CatalogIndexGetResultSchema: import("../index.core.js").VgiSchema;
|
|
98
|
+
export declare const CatalogIndexOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
|
|
66
99
|
export declare const CatalogMacroGetResultSchema: import("../index.core.js").VgiSchema;
|
|
67
100
|
export declare const CatalogSchemaContentsFunctionsResultSchema: import("../index.core.js").VgiSchema;
|
|
68
101
|
export declare const CatalogSchemaContentsIndexesResultSchema: import("../index.core.js").VgiSchema;
|
|
@@ -70,8 +103,11 @@ export declare const CatalogSchemaContentsMacrosResultSchema: import("../index.c
|
|
|
70
103
|
export declare const CatalogSchemaContentsTablesResultSchema: import("../index.core.js").VgiSchema;
|
|
71
104
|
export declare const CatalogSchemaContentsViewsResultSchema: import("../index.core.js").VgiSchema;
|
|
72
105
|
export declare const CatalogSchemaGetResultSchema: import("../index.core.js").VgiSchema;
|
|
106
|
+
export declare const CatalogSchemaOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
|
|
73
107
|
export declare const CatalogSchemasResultSchema: import("../index.core.js").VgiSchema;
|
|
108
|
+
export declare const CatalogTableConstraintsApplyResultSchema: import("../index.core.js").VgiSchema;
|
|
74
109
|
export declare const CatalogTableGetResultSchema: import("../index.core.js").VgiSchema;
|
|
110
|
+
export declare const CatalogTableOptionDefinitionsResultSchema: import("../index.core.js").VgiSchema;
|
|
75
111
|
export declare const CatalogTransactionBeginResultSchema: import("../index.core.js").VgiSchema;
|
|
76
112
|
export declare const CatalogVersionResultSchema: import("../index.core.js").VgiSchema;
|
|
77
113
|
export declare const CatalogViewGetResultSchema: import("../index.core.js").VgiSchema;
|
|
@@ -81,6 +117,7 @@ export declare const TableBufferingProcessResultSchema: import("../index.core.js
|
|
|
81
117
|
export declare const TableFunctionCardinalityResultSchema: import("../index.core.js").VgiSchema;
|
|
82
118
|
export declare const TableFunctionDynamicToStringResultSchema: import("../index.core.js").VgiSchema;
|
|
83
119
|
export declare const TableFunctionPlanResultSchema: import("../index.core.js").VgiSchema;
|
|
120
|
+
export declare const TableFunctionProjectionResultSchema: import("../index.core.js").VgiSchema;
|
|
84
121
|
export declare const AggregateBindParamsSchema: import("../index.core.js").VgiSchema;
|
|
85
122
|
export declare const AggregateCombineParamsSchema: import("../index.core.js").VgiSchema;
|
|
86
123
|
export declare const AggregateDestructorParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -99,14 +136,20 @@ export declare const CatalogCatalogsParamsSchema: import("../index.core.js").Vgi
|
|
|
99
136
|
export declare const CatalogContentsParamsSchema: import("../index.core.js").VgiSchema;
|
|
100
137
|
export declare const CatalogCopyFromFormatsParamsSchema: import("../index.core.js").VgiSchema;
|
|
101
138
|
export declare const CatalogCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
139
|
+
export declare const CatalogDependenciesParamsSchema: import("../index.core.js").VgiSchema;
|
|
102
140
|
export declare const CatalogDetachParamsSchema: import("../index.core.js").VgiSchema;
|
|
103
141
|
export declare const CatalogDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
104
142
|
export declare const CatalogIndexCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
105
143
|
export declare const CatalogIndexDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
106
144
|
export declare const CatalogIndexGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
145
|
+
export declare const CatalogIndexOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
107
146
|
export declare const CatalogMacroCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
108
147
|
export declare const CatalogMacroDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
109
148
|
export declare const CatalogMacroGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
149
|
+
export declare const CatalogQueryPrepareParamsSchema: import("../index.core.js").VgiSchema;
|
|
150
|
+
export declare const CatalogQueryReleaseParamsSchema: import("../index.core.js").VgiSchema;
|
|
151
|
+
export declare const CatalogSchemaAlterMetadataParamsSchema: import("../index.core.js").VgiSchema;
|
|
152
|
+
export declare const CatalogSchemaAlterOptionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
110
153
|
export declare const CatalogSchemaContentsFunctionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
111
154
|
export declare const CatalogSchemaContentsIndexesParamsSchema: import("../index.core.js").VgiSchema;
|
|
112
155
|
export declare const CatalogSchemaContentsMacrosParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -115,7 +158,10 @@ export declare const CatalogSchemaContentsViewsParamsSchema: import("../index.co
|
|
|
115
158
|
export declare const CatalogSchemaCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
116
159
|
export declare const CatalogSchemaDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
117
160
|
export declare const CatalogSchemaGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
161
|
+
export declare const CatalogSchemaOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
118
162
|
export declare const CatalogSchemasParamsSchema: import("../index.core.js").VgiSchema;
|
|
163
|
+
export declare const CatalogTableAlterLayoutParamsSchema: import("../index.core.js").VgiSchema;
|
|
164
|
+
export declare const CatalogTableAlterOptionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
119
165
|
export declare const CatalogTableColumnAddParamsSchema: import("../index.core.js").VgiSchema;
|
|
120
166
|
export declare const CatalogTableColumnCommentSetParamsSchema: import("../index.core.js").VgiSchema;
|
|
121
167
|
export declare const CatalogTableColumnDefaultDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -125,6 +171,7 @@ export declare const CatalogTableColumnRenameParamsSchema: import("../index.core
|
|
|
125
171
|
export declare const CatalogTableColumnStatisticsGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
126
172
|
export declare const CatalogTableColumnTypeChangeParamsSchema: import("../index.core.js").VgiSchema;
|
|
127
173
|
export declare const CatalogTableCommentSetParamsSchema: import("../index.core.js").VgiSchema;
|
|
174
|
+
export declare const CatalogTableConstraintsApplyParamsSchema: import("../index.core.js").VgiSchema;
|
|
128
175
|
export declare const CatalogTableCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
129
176
|
export declare const CatalogTableDeleteFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
130
177
|
export declare const CatalogTableDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -132,6 +179,7 @@ export declare const CatalogTableGetParamsSchema: import("../index.core.js").Vgi
|
|
|
132
179
|
export declare const CatalogTableInsertFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
133
180
|
export declare const CatalogTableNotNullDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
134
181
|
export declare const CatalogTableNotNullSetParamsSchema: import("../index.core.js").VgiSchema;
|
|
182
|
+
export declare const CatalogTableOptionDefinitionsParamsSchema: import("../index.core.js").VgiSchema;
|
|
135
183
|
export declare const CatalogTableRenameParamsSchema: import("../index.core.js").VgiSchema;
|
|
136
184
|
export declare const CatalogTableScanBranchesGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
137
185
|
export declare const CatalogTableScanFunctionGetParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -140,6 +188,7 @@ export declare const CatalogTransactionBeginParamsSchema: import("../index.core.
|
|
|
140
188
|
export declare const CatalogTransactionCommitParamsSchema: import("../index.core.js").VgiSchema;
|
|
141
189
|
export declare const CatalogTransactionRollbackParamsSchema: import("../index.core.js").VgiSchema;
|
|
142
190
|
export declare const CatalogVersionParamsSchema: import("../index.core.js").VgiSchema;
|
|
191
|
+
export declare const CatalogViewColumnCommentSetParamsSchema: import("../index.core.js").VgiSchema;
|
|
143
192
|
export declare const CatalogViewCommentSetParamsSchema: import("../index.core.js").VgiSchema;
|
|
144
193
|
export declare const CatalogViewCreateParamsSchema: import("../index.core.js").VgiSchema;
|
|
145
194
|
export declare const CatalogViewDropParamsSchema: import("../index.core.js").VgiSchema;
|
|
@@ -152,4 +201,5 @@ export declare const TableBufferingProcessParamsSchema: import("../index.core.js
|
|
|
152
201
|
export declare const TableFunctionCardinalityParamsSchema: import("../index.core.js").VgiSchema;
|
|
153
202
|
export declare const TableFunctionDynamicToStringParamsSchema: import("../index.core.js").VgiSchema;
|
|
154
203
|
export declare const TableFunctionPlanParamsSchema: import("../index.core.js").VgiSchema;
|
|
204
|
+
export declare const TableFunctionProjectionParamsSchema: import("../index.core.js").VgiSchema;
|
|
155
205
|
export declare const TableFunctionStatisticsParamsSchema: import("../index.core.js").VgiSchema;
|