ayush00git commented on issue #3616: URL: https://github.com/apache/fory/issues/3616#issuecomment-4318457347
Hii @BsoBird the reason for this behavior is that `Encoders.bean(...)` sorts the fields of your Java class alphabetically by name, rather than preserving the order in which they are declared in your source code. you just need to access the `BinaryRow` using their alphabetical indices (like use `getBoolean(2)` for `fBool`, `getString(11)` for `fString`, or look up the correct index dynamically from the encoder's schema. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
