@query-farm/vgi 0.48.4 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -1
- package/dist/attach-secret-keyfile.d.ts +11 -0
- package/dist/attach-secret-options.d.ts +96 -0
- package/dist/catalog/attach-option.d.ts +6 -0
- package/dist/catalog/composite.d.ts +2 -0
- package/dist/catalog/descriptors.d.ts +11 -0
- package/dist/catalog/interface.d.ts +54 -2
- package/dist/catalog/scan-planning.d.ts +76 -0
- package/dist/client-entry.js +32 -4
- package/dist/client-entry.js.map +9 -8
- package/dist/generated/vgi-client.d.ts +1 -0
- package/dist/generated/vgi-protocol-schemas.d.ts +1 -1
- package/dist/generated/vgi-service.d.ts +5 -1
- package/dist/index.core.d.ts +3 -0
- package/dist/index.js +3245 -2538
- package/dist/index.js.map +32 -29
- package/dist/protocol/dispatch.d.ts +13 -2
- package/dist/protocol/handlers/catalog/admin.d.ts +1 -1
- package/dist/protocol/handlers/catalog/index.d.ts +1 -1
- package/dist/protocol/handlers/catalog/index_methods.d.ts +1 -1
- package/dist/protocol/handlers/catalog/macro.d.ts +1 -1
- package/dist/protocol/handlers/catalog/shared.d.ts +28 -3
- package/dist/protocol/handlers/catalog/table.d.ts +1 -1
- package/dist/protocol/handlers/catalog/view.d.ts +1 -1
- package/dist/protocol/handlers/function.d.ts +2 -0
- package/dist/protocol/handlers/table-buffering.d.ts +1 -1
- package/dist/serve-entry.d.ts +5 -0
- package/dist/serve-entry.js +2026 -101
- package/dist/serve-entry.js.map +27 -20
- package/dist/worker-cf-entry.d.ts +2 -2
- package/dist/worker-cf-entry.js +823 -103
- package/dist/worker-cf-entry.js.map +27 -24
- package/dist/worker.d.ts +10 -0
- package/package.json +1 -1
- package/src/attach-secret-keyfile.ts +185 -0
- package/src/attach-secret-options.ts +418 -0
- package/src/catalog/attach-option.ts +6 -0
- package/src/catalog/column-metadata.ts +7 -0
- package/src/catalog/composite.ts +5 -0
- package/src/catalog/descriptors.ts +11 -0
- package/src/catalog/interface.ts +97 -2
- package/src/catalog/read-only.ts +14 -1
- package/src/catalog/scan-planning.ts +314 -0
- package/src/generated/vgi-client.ts +2 -1
- package/src/generated/vgi-protocol-schemas.ts +6 -2
- package/src/generated/vgi-service.ts +7 -2
- package/src/index.core.ts +21 -0
- package/src/protocol/dispatch.ts +16 -4
- package/src/protocol/handlers/catalog/admin.ts +33 -18
- package/src/protocol/handlers/catalog/index.ts +6 -5
- package/src/protocol/handlers/catalog/index_methods.ts +5 -3
- package/src/protocol/handlers/catalog/macro.ts +7 -5
- package/src/protocol/handlers/catalog/shared.ts +52 -6
- package/src/protocol/handlers/catalog/table.ts +43 -30
- package/src/protocol/handlers/catalog/view.ts +9 -7
- package/src/protocol/handlers/function.ts +11 -5
- package/src/protocol/handlers/table-buffering.ts +2 -1
- package/src/serve-entry.ts +6 -1
- package/src/worker-cf-entry.ts +9 -0
- package/src/worker.ts +12 -0
|
@@ -70,6 +70,7 @@ export interface TableInfo {
|
|
|
70
70
|
required_filters: string[][][];
|
|
71
71
|
options?: /** @ipc-record OptionState */ Uint8Array | null;
|
|
72
72
|
layout?: /** @ipc-record TableLayout */ Uint8Array | null;
|
|
73
|
+
scan_planning: string;
|
|
73
74
|
}
|
|
74
75
|
export interface ViewInfo {
|
|
75
76
|
comment?: string | null;
|
|
@@ -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 = "d9304d52d78b0ceb90319d9a83759781df4a711b72443790654335c8cfcad9bf";
|
|
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;
|
|
@@ -3,7 +3,7 @@ import { type VgiSchema } from "../arrow/index.js";
|
|
|
3
3
|
/** The protocol's wire name: the `vgi_rpc.protocol` routing key and the HTTP path segment. */
|
|
4
4
|
export declare const VGI_PROTOCOL_NAME = "vgi.v3";
|
|
5
5
|
/** The protocol's semver, stamped on every request by a client of this protocol. */
|
|
6
|
-
export declare const VGI_PROTOCOL_VERSION = "3.
|
|
6
|
+
export declare const VGI_PROTOCOL_VERSION = "3.2.0";
|
|
7
7
|
/** What a unary handler returns: the result row, now or later. */
|
|
8
8
|
export type VgiReply<T> = T | ExternalRef | Promise<T | ExternalRef>;
|
|
9
9
|
/** The result of a unary method with no `result` column. */
|
|
@@ -672,6 +672,8 @@ export interface CatalogTableScanBranchesGetParams {
|
|
|
672
672
|
at_value: string | null;
|
|
673
673
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
674
674
|
transaction_opaque_data: Uint8Array | null;
|
|
675
|
+
/** The `pushdown_filters` column (`binary`, nullable). */
|
|
676
|
+
pushdown_filters: Uint8Array | null;
|
|
675
677
|
}
|
|
676
678
|
/** The params of `catalog_table_scan_function_get`, one property per params-schema column. */
|
|
677
679
|
export interface CatalogTableScanFunctionGetParams {
|
|
@@ -1343,6 +1345,8 @@ export interface VgiService {
|
|
|
1343
1345
|
/**
|
|
1344
1346
|
* Get the list of scan branches for a multi-branch table. Returns `ScanBranchesResult` as IPC bytes.
|
|
1345
1347
|
*
|
|
1348
|
+
* Protocol 3.2: ``pushdown_filters`` carries the query's predicates on the table (an Arrow IPC stream holding one VGI Filter Encoding v2 snapshot batch; column indexes refer to ``TableInfo.columns``) when the table declares ``scan_planning = "filtered"``. Every predicate is advisory. ``None`` means none were collected. See ``docs/protocol/scan-planning.md``.
|
|
1349
|
+
*
|
|
1346
1350
|
* Additive successor to ``catalog_table_scan_function_get``. Workers that only implement the legacy method continue to work — the VGI extension's C++ side catches ``MethodNotImplementedError`` and falls back to the legacy RPC, wrapping the single-function result as a one-branch list. Workers that implement BOTH the legacy and the branches method guarantee single-process compatibility with both old and new extensions.
|
|
1347
1351
|
*
|
|
1348
1352
|
* Multi-branch tables compose a logical scan from N physical sources (canonical case: Kafka hot tier + Iceberg cold tier). The extension's optimizer rewrite stitches the branches together via ``LogicalSetOperation(UNION_ALL, ...)``, one arm per branch.
|
package/dist/index.core.d.ts
CHANGED
|
@@ -34,8 +34,11 @@ export type { LandingInfo } from "./http/landing.js";
|
|
|
34
34
|
export { createLandingRoutes } from "./http/landing.js";
|
|
35
35
|
export { BindResultSchema, ScanFunctionResultSchema } from "./generated/vgi-protocol-schemas.js";
|
|
36
36
|
export { type AttachOptionSpec, serializeAttachOptionSpec, serializeAttachOptionSpecs, deserializeAttachOptionSpec, deserializeAttachOptionSpecs, RESERVED_ATTACH_OPTION, ReservedAttachOptionError, } from "./catalog/attach-option.js";
|
|
37
|
+
export { attachOptions, attachOption, type AttachOptionValues, AttachOptionsUnavailableError, AttachSecretKeyUnavailableError, ATTACH_SECRET_OPTIONS_INFO, } from "./attach-secret-options.js";
|
|
38
|
+
export { hostLocalAttachSecretKeyPath, ATTACH_SECRET_KEY_FILE_ENV } from "./attach-secret-keyfile.js";
|
|
37
39
|
export { ATTACH_TICKET_OPTION, ATTACH_TICKET_PREFIX, ATTACH_TICKETS_PROTOCOL_NAME, ATTACH_TICKETS_PROTOCOL_VERSION, ATTACH_TICKET_SCHEMA, SEAL_ATTACH_REQUEST_SCHEMA, AttachTicketExpiredError, AttachTicketInvalidError, AttachTicketRequestError, SealAttachDeniedError, type AttachTicket, type AttachTicketClaims, type RestoredAttach, encodeAttachTicket, attachTicketAad, mintAttachTicket, openAttachTicket, redeemAttachTicket, } from "./attach-ticket.js";
|
|
38
40
|
export { type ColumnStatistics, serializeColumnStatistics } from "./util/statistics.js";
|
|
41
|
+
export { ScanPlanningFilters, filtersMayMatch, validateScanPlanning, SCAN_PLANNING_BIND, SCAN_PLANNING_FILTERED, SCAN_PLANNING_MODES, type ScanPlanningMode, type ScanCandidateStatistics, } from "./catalog/scan-planning.js";
|
|
39
42
|
export { toUint8Array } from "./util/bytes.js";
|
|
40
43
|
export { iterRows, batchFromRows, batchFromColumns, emptyBatch, filterBatch, projectSchema, projectBatch, batchToScalarDict, batchToSecretDict, safeNumber, } from "./util/arrow/index.js";
|
|
41
44
|
export { type SecretFields, type SecretsDict, secretType, secretsOfType, secretOfType, requireSecretOfType, secretByName, secretForScope, secretForScopeOfType, } from "./secrets/helpers.js";
|