-
Notifications
You must be signed in to change notification settings - Fork 14
remove schema adapter #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove schema adapter #205
Conversation
gabotechs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I imagine this could potentially allows to save on bandwidth for when dictionary encoded values are in the schema.
|
|
||
| let stream = FlightDataEncoderBuilder::new() | ||
| .with_schema(stream.schema().clone()) | ||
| .with_dictionary_handling(DictionaryHandling::Resend) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, with this line, we are telling the flight data encoder to just send the dictionaries over the wire instead of hydrating them and re-encoding them. Is that right?
If you could include a very brief comment above this line that would be awesome 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great optimization. Thanks @adriangb
gabotechs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 thanks @adriangb!
Co-authored-by: Gabriel <[email protected]>
This was added in #174 but I think a better fix is to just configure the IPC encoder to send dictionaries across the wire.