Repository navigation
Align scan and seek signatures, expose multi-start in seek - #305
Merged
Merged
Conversation
Follow-up to #304. `seek` is backed by multi-scan — `Label.cache(sources: List<Any>, ...)` and `hbaseGetWideRow(rows: List<ByteArray>, ...)` already accept multiple keys, but `TableBinding.seek` / `QueryService.seek` / the controller only exposed a single `Any`. Widen the external surface to `List<Any>` so it matches the underlying capability and the parameter shape of `agg`. Also add `filters` and `features` to `seek` so its signature mirrors `scan`. Neither is implemented for the cache path; `V2BackedTableBinding.seek` rejects them via `require(...)` in the same style as `QueryService.counts` / `gets`, leaving room for a later implementation without another signature break. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
Author
Follow-up to f1bc511, which widened `seek`'s `start` parameter to `List<Any>` but only flipped existing single-start tests to wrap their argument in a list. Add two cases that actually exercise the multi-start path: one with edges across two sources to confirm both rows are merged into the result, and one where one of the start vertices has no edges to confirm the empty source is tolerated rather than failing the query. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
|
Optimistic Merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #304 (comment).
seekis backed byLabel.cache/hbaseGetWideRow, which already take a list of keys, butTableBinding.seek/QueryService.seek/ the HTTP controller exposed only a singleAny. Widen the external surface toList<Any>so it matches the underlying capability and aligns withagg'sstart: List<Any>.seekalso gainsfiltersandfeaturesto mirrorscan. Neither is implemented on the cache path;V2BackedTableBinding.seekrejects them viarequire(...)in the same style asQueryService.counts/gets, so the surface can be filled in later without another signature break.Changes
TableBinding.seek/QueryService.seek/V2BackedTableBinding.seek/NilTableBinding.seek:start: Any→List<Any>, plusfilters: String?andfeatures: List<String>.V2BackedTableBinding.seek: passstartstraight through tolabel.cache(start, …);require(filters == null)andrequire(features.isEmpty()).EdgeQueryController.seek:@RequestParam start: List<String>(mirrorsagg), plusfiltersandfeatures.ActionbaseQueryExecutor.processSeek: drop the per-sourceFlux.fromIterable.flatMap; pass the resolved sources intoseekin a single call.How to Test
AI Assistance