bharadwaj-pendyala commented on issue #12265: URL: https://github.com/apache/arrow-rs/issues/12265#issuecomment-6895927233
I'd like to take this. I've got it reproduced on main (112f01f19) without fastparquet: write a 0-row file with `SerializedFileWriter`, then change the `row_groups` list header in the footer from `0x0C` to `0x00`. `SerializedFileReader::new` then fails with the same "Expected list element type of Struct but got Byte". My fix would do what you suggest: `validate_list_type` returns `Ok` when the list size is 0. `read_thrift_vec` and the hand-written readers for row groups, column chunks, encodings, encoding stats and page locations all go through it. Each one loops over `size`, so an empty list never decodes an element whatever type it declares. Non-empty lists keep the check from #9924. -- 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]
