Skip to content

[VariantShredding] Union of partially shredded objects has undefined field order in result object #506

@Tishj

Description

@Tishj

return VariantObject(metadata, object_fields).union(VariantObject(metadata, value))

The spec says to union the unshredded and shredded values together, in the case of a partially shredded object.
Is there a defined order in which fields should be spliced together?

Without a defined order the result of combining the partially shredded object together will be inconsistent between different implementations, if this is acceptable it should at least be noted in the spec in my opinion.

For example, the object is shredded on fields a and c, the object contains 2 more fields, b and d, in which order should these 4 fields appear in the final result?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions