You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Variant] Document and test validation of malformed shredded object fields #10619
Is your feature request related to a problem or challenge?
When variant_get finds a named field in a shredded object, that field must be a Struct containing the shredded value/typed_value representation.
The current code returns InvalidArgumentError when it is not a Struct, but a TODO questions whether traversal should instead fall back to the encoded Variant value.
This extraction point is a valid lazy-validation boundary: a present non-Struct field violates the physical shredding layout.
Describe the solution you'd like
Preserve InvalidArgumentError, replace the TODO with an explanation of the physical invariant, include the field name and actual type in the error, and add a malformed-layout regression test.
Activity
cakeni commentedon Aug 11, 2026
I'd like to work on this. I plan to preserve the validation error, improve its context, and add a malformed-layout regression test.
cakeni commentedon Aug 11, 2026
take
fix(variant): improve malformed object field diagnostics (#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)
fix(variant): improve malformed object field diagnostics (apache#10638)