Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit c267aa8

Browse files
committed
feat: add KeyRecipe and KeyRecipeCache for SpanFE bypass
This commit adds the key recipe system that enables encoding of Spanner keys from request parameters: - KeyRecipe: Translates read/query requests into ssformat keys using recipes provided by the server. Supports all Spanner types including: - Primitive types (INT64, FLOAT64, STRING, BYTES, BOOL) - Date, Timestamp, and Numeric types - Complex types with nested field extraction - Ascending/descending key ordering - NULL handling with configurable ordering - KeyRecipeCache: Caches KeyRecipes by table/index/query and schema generation. Provides efficient lookup and key computation for recurring request patterns. - Golden tests: Comprehensive test suite using golden test data to verify key encoding correctness. Depends on: SsFormat encoding library (PR #1) This is part of the SpanFE bypass feature that enables location-aware routing for improved latency.
1 parent 77c4f60 commit c267aa8

5 files changed

Lines changed: 5572 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)