Repository navigation
Route HBase HASH labels through the V3 tableBinding path - #296
Merged
Merged
Conversation
V3 endpoints on HASH-type labels were returning HTTP 400 because V2BackedEngine.getTableBinding only accepts HBaseIndexedLabel. HASH + HBaseStorage now materializes to a new HBaseHashOnlyIndexedLabel (IndexedLabel shape with empty indices/caches), so the V3 path works for read/get/count/write. scan and cache are explicitly blocked on this label with a clear "not supported on HASH-type label" error. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
em3s
added a commit
that referenced
this pull request
Apr 30, 2026
em3s
added a commit
that referenced
this pull request
Apr 30, 2026
(cherry picked from commit bbca253)
1 task done
em3s
added a commit
that referenced
this pull request
Jul 24, 2026
A HASH label on datastore storage materialized to DatastoreHashLabel, which extends HBaseHashLabel directly and therefore sits outside the HBaseIndexedLabel family that V2BackedEngine.getTableBinding requires. Every edge mutation on such a table failed on the V3 path with "not indexed or not supported for edge mutation". HBase HASH labels already avoid this via HBaseHashOnlyIndexedLabel (PR #296); datastore was never given the equivalent wrapper. Add DatastoreHashOnlyIndexedLabel, the datastore mirror of HBaseHashOnlyIndexedLabel: an HBaseIndexedLabel with no indices whose scan/cache throw UnsupportedOperationException. With no indices the indexed mutation path writes only the base hash rows, so the on-disk format is identical to a plain hash label and existing tables need no data migration. Route the HASH + DatastoreStorage branch to it and drop the now-unused DatastoreHashLabel. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 task done
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
To keep the V3 surface uniform during the V2→V3 transition, HASH-type HBase labels are now exposed as an
HBaseIndexedLabelshape so they reach the V3tableBindingpath without per-label-type branching inV2BackedEngine. A small adapter,HBaseHashOnlyIndexedLabel, plays this role: empty indices/caches, withscanandcacheexplicitly blocked.Closes #
Changes
HBaseHashOnlyIndexedLabel(HASH-only adapter on top ofHBaseIndexedLabel).scanandcachethrow an explicit "not supported on HASH-type label" error so callers get a clear signal instead of an "Index/Cache not found" fall-through.LabelEntity.materialize: HASH + HBaseStorage now materializes viaHBaseHashOnlyIndexedLabel.create.LabelSpecthat exercised a path no longer used in production (- hbasevariants only); JDBC and- hbase indexedvariants are kept.AliasSpec: switch fixture fromhbaseHashtojdbcHashso the alias-mechanism coverage stays intact (JDBC HASH still supports hash-prefix scan).How to Test
./gradlew :engine:testAI Assistance