-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
feat(internal): Add zstd to internal content_coding #13423
feat(internal): Add zstd to internal content_coding #13423
Conversation
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.
Looks good to me. Thanks for this contribution @zekena2!
Honestly speaking, we should fix the max-size later in the correct way i.e. by using the decoder option. @Hipska you are now trying to enforce something that was mandated by a linter to a place where it does not serve any purpose besides artificially creating an error... |
I Indeed have no idea, why this check is there and why it must be an error when some decoded data is some size, but now at least the Zstd decoder is behaving exactly the same as others. Uniformity is more important to me. Or do you suggest to change this behaviour for all decoders in this PR as well? |
@srebhan Is this implementation correct? |
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.
Please revert the changes to IdentityDecoder
and simply ignore the options there. Otherwise the PR looks good.
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 for fixing the identity part @zekena2! Some more comments, especially regarding setting the new option only if an actual size was specified by the user and otherwise use the default...
Co-authored-by: Zeyad Kenawi <zeyad.kenawi@starship.co>
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.
Looks good to me! Only a minor remark..
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
Required for all PRs
helps #12875