alamb opened a new issue, #5588:
URL: https://github.com/apache/arrow-rs/issues/5588

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   As part of https://github.com/apache/arrow-rs/pull/5554 @hzuo added the 
ability to enforce alignment
   
   We could add a `with_require_alignment` to the 
[`FileDecoder`](https://docs.rs/arrow-ipc/51.0.0/arrow_ipc/reader/struct.FileDecoder.html)
  
   
   
   However, given the way the 
[`read_dictionary`](https://docs.rs/arrow-ipc/51.0.0/arrow_ipc/reader/fn.read_dictionary.html)
 is structured, there was no way to add this option without breaking the  API, 
as @tustvold  noted  
https://github.com/apache/arrow-rs/pull/5554/files#r1549239776 
   
   Thus the require_alignment argument is now not exposed
   
   
   **Describe the solution you'd like**
   
   It would be nice to have a way to add new options in a way that did not 
break API compatibility going forward, and expose the `requirement_alignment` 
feature
   
   **Describe alternatives you've considered**
   
   @tustvold  suggests 
https://github.com/apache/arrow-rs/pull/5554/files#r1550178314
   
   > possibly some sort of `Decoder` struct with a member function on it...
   > 
   > Ideally it would be designed so that it could be shared across things like 
`StreamDecoder` and `FileDecoder`
   
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


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