CurtHagenlocher opened a new pull request, #545: URL: https://github.com/apache/arrow-dotnet/pull/545
### What's changed? `VariantValueWriter` stores an object's values in field order, so `ManyFieldsStoredOutOfOrder_AreAccepted`, which inserts fields in reverse, never stored values out of order. The validator's sort for objects whose values are stored in another order, as the spec allows, was reached only by a test that expects rejection. - `EncodeFieldsInReverseOrder` now rewrites the encoded object so its values are stored in reverse order. It first checks that the writer's output is in field order. - The 5- and 40-field cases now go through the insertion sort and the pooled `Array.Sort` respectively. - The validator's comment said our writer stores values in insertion order; it now says the writer uses field order and other writers need not. No change to behaviour. ### Testing With the sort disabled, both accepted cases fail. `Apache.Arrow.Scalars.Tests` and `Apache.Arrow.Operations.Tests` pass on net8.0, net462 and net472, with the parquet-testing submodule checked out. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012dFdcrBz22tRjiyNwBd7VB -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
