@query-farm/vgi 0.41.0 → 0.42.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.
@@ -9429,6 +9429,38 @@ function registerCatalogMethods(protocol, catalog, _catalogName, signingKey) {
9429
9429
  registerCatalogIndexMethods(protocol, getCatalog, signingKey);
9430
9430
  }
9431
9431
 
9432
+ // src/protocol/handlers/unimplemented.ts
9433
+ import { MethodNotImplementedError } from "@query-farm/vgi-rpc";
9434
+ var UNIMPLEMENTED_METHODS = [
9435
+ { name: "aggregate_streaming_open", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9436
+ { name: "aggregate_streaming_chunk", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9437
+ { name: "aggregate_streaming_close", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9438
+ { name: "aggregate_window_init", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9439
+ { name: "aggregate_window", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9440
+ { name: "aggregate_window_batch", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9441
+ { name: "aggregate_window_destructor", params: REQUEST_PARAMS_SCHEMA, result: RESULT_BINARY_SCHEMA },
9442
+ { name: "catalog_index_create", params: CatalogIndexCreateParamsSchema, result: emptyResultSchema },
9443
+ { name: "catalog_index_drop", params: CatalogIndexDropParamsSchema, result: emptyResultSchema },
9444
+ { name: "catalog_table_column_comment_set", params: CatalogTableColumnCommentSetParamsSchema, result: emptyResultSchema },
9445
+ { name: "catalog_table_insert_function_get", params: CatalogTableInsertFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA },
9446
+ { name: "catalog_table_update_function_get", params: CatalogTableUpdateFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA },
9447
+ { name: "catalog_table_delete_function_get", params: CatalogTableDeleteFunctionGetParamsSchema, result: RESULT_BINARY_SCHEMA }
9448
+ ];
9449
+ function unimplementedMessage(method) {
9450
+ return `${method} is not implemented by this worker`;
9451
+ }
9452
+ function registerUnimplementedMethods(protocol) {
9453
+ for (const m of UNIMPLEMENTED_METHODS) {
9454
+ protocol.unary(m.name, {
9455
+ params: m.params,
9456
+ result: m.result,
9457
+ handler: async () => {
9458
+ throw new MethodNotImplementedError(unimplementedMessage(m.name));
9459
+ }
9460
+ });
9461
+ }
9462
+ }
9463
+
9432
9464
  // src/protocol/dispatch.ts
9433
9465
  var VGI_PROTOCOL_NAME = "vgi.v2";
9434
9466
  function buildVgiProtocol(config) {
@@ -9441,6 +9473,7 @@ function buildVgiProtocol(config) {
9441
9473
  registerAggregateMethods(protocol, config.registry);
9442
9474
  registerTableBufferingMethods(protocol, config.registry, config.signingKey);
9443
9475
  registerCatalogMethods(protocol, config.catalogInterface, config.catalogName, config.signingKey);
9476
+ registerUnimplementedMethods(protocol);
9444
9477
  return protocol;
9445
9478
  }
9446
9479
 
@@ -12212,4 +12245,4 @@ export {
12212
12245
  utf82 as utf8
12213
12246
  };
12214
12247
 
12215
- //# debugId=8A1BBED7A349251A64756E2164756E21
12248
+ //# debugId=CA8AE11CB8003E9464756E2164756E21