Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As part of #5554 @hzuo added the ability to enforce alignment
We could add a with_require_alignment
to the FileDecoder
However, given the way the read_dictionary
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
andFileDecoder
Additional context