etseidl commented on issue #7040: URL: https://github.com/apache/arrow-rs/issues/7040#issuecomment-2626021103
FWIW, pyarrow produces ``` _1: [[null,null,true,null,true,null,null,null,true,null]] _2: [[null,null,18,null,20,null,null,null,24,null]] _3: [[null,null,10002,null,10004,null,null,null,10008,null]] _4: [[null,null,10002,null,10004,null,null,null,10008,null]] _5: [[null,null,10002,null,10004,null,null,null,10008,null]] _6: [[null,null,10002,null,10004,null,null,null,10008,null]] _7: [[null,null,10002,null,10004,null,null,null,10008,null]] _8: [[null,null,"100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002",null,"100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004100041000410004",null,null,null,"100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008100081000810008",null]] _9: [[null,null,238,null,236,null,null,null,232,null]] _10: [[null,null,55534,null,55532,null,null,null,55528,null]] ... ``` Might be worth looking at how arrow-cpp handles this. Also, parquet-read (which uses `SerializedFileReader`) produces output consistent with what's desired (and pyarrow/arrow-cpp). One could also argue it's a bug in the java implementation...when writing an 8 bit unsigned, you'd expect values to be masked to the proper number of bits to avoid this issue. -- 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]
