HippoBaro commented on issue #12364:
URL: https://github.com/apache/arrow-rs/issues/12364#issuecomment-7085355895

   > One question, maybe not directly related to the problem: When you speak of 
a streaming GET, how do you actually handle not knowing the size of page 
headers up front? Seems like that would require an async thrift parser, or 
trying to parse and retrying after additional data is available on EOF errors.
   
   @jhorstmann I’d keep async outside of the Thrift parser. 
   
   At each page boundary, we can refill a buffer so it covers at least a 
"maximum header size" + the expected maximum data page size (we control we 
writer, we know that too), then parse synchronously. A header exceeding that 
limit would be rejected. Once parsed, `compressed_page_size` tells us where the 
next page begins.


-- 
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]

Reply via email to