ID |
|
|---|---|
Status |
Backlog |
Bucket |
bug |
Priority |
1 |
Theme |
nodeid |
Created |
2026-11-16 |
Updated |
2026-11-24 |
Bound the cost of coercing key and tenant values, and the number of keys _entities and nodes take
Goal
The emitted ColumnValues (the runtime class that decides whether a client value is a value of its column) checks a numeric value’s digit count and magnitude against what the column type can represent before doing any arithmetic on it, so coercing a federation @key value or a tenant value costs a small constant amount for any input. _entities and Query.nodes refuse a request carrying more representations or ids than a configurable limit, as a client error and before any key is decoded.
Notes
Details are held outside the public tree; ask the maintainers.
-
The bound applies on every numeric column type, converter-backed ones included, and in
exact,fromDatabaseandfitsPrecisionas well ascoerce. The documented coercions are kept:"1.5"binds as 1, a padded number is accepted, and a wrap is still refused. -
The representation limit applies on the direct
resolveByRepspath (EntityFetcherDispatchClassGenerator) as well as to DataLoader batches. -
Code involved:
ColumnValuesClassGenerator,HandleMethodBody(the_entitieskey arm),EntityFetcherDispatchClassGenerator,ConnectionRuntimeClassGenerator(tenantKeyOrNull,tenantKeyOf), andColumnValuesTestingraphitron-sakila-example. -
Adjacent:
derived-read-cost-is-a-shape-problemchanges theexactandfoldedsignatures, so whichever lands second rebases onto the other. -
Open for Spec: where the limit is configured (a Maven plugin parameter baked into the generated code, or a runtime setting on the generated wiring) and its default; and whether the magnitude bound comes from the jOOQ
DataTypeor from a fixed ceiling, since aNUMERICwith no declared precision has no column bound to read. -
R1190is the sibling at thegraphitron-jakarta-restHTTP boundary; neither depends on the other. -
Progress: the coercion bound has landed (the user waived the Spec and Ready gates for it), as a private precondition of every
ColumnValuesentry point, so a value read at a column through that class is bounded and a reading that goes around it is the defect; the release-candidate cursor reading goes throughfromWire. The user manual states the bound once, in the federation reference, pinned to the emitted constants byNumericValueSizeDocTest. The representation limit is still open; the principles-architect leaned toward a build-time parameter captured as its ownstore_graph_*relation, two limits rather than one, and noted that a finite default refuses requests that succeed today.