XiangpengHao commented on PR #6044:
URL: https://github.com/apache/arrow-rs/pull/6044#issuecomment-2226999666

   I was confused by the `decode_block` api, I thought the `b` in the following 
code refers to the bytes of the row. But it is not. We need to concatenate 
multiple `b`s to get the final bytes.
   ```rust
   decode_blocks(row, options, |b| values.extend_from_slice(b));
   ```
   
   The consequence is that we need to first decode blocks, then we know how the 
length of the bytes -- meaning that we can not write the bytes to different 
buffers depending on their length.


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