Repository navigation
Conversation
Adds a dependency on `zstd-jni` which declares no transitive dependencies, but otherwise just fills out enum values to expose the ZStandard support that already exists in commons-compress.
|
cc @jkff who originally merged |
|
Run Python PreCommit |
iemejia
left a comment
There was a problem hiding this comment.
LGTM! Awesome, super clean implementation nothing to say 👏
| /** @see Compression#ZSTD */ | ||
| ZSTD(Compression.ZSTD), | ||
|
|
||
| /** @see Compression#DEFLATE */ |
| } | ||
|
|
||
| /** Test reading according to filepattern when the file is gzipped. */ | ||
| /** Test reading according to filepattern when the file is bzipped. */ |
|
This adds a new dep for sdks/java/core. It is a pity that we don't have an extensible mechanism for new compression schemas. Has somebody proposed or discussed this @kennknowles? As usual I am afraid of possible conflict on dependencies. |
|
I will wait for the extra comment but probably will merge it ASAP. Thanks @jklukas ! |
|
We could move |
|
I think that the test idea brings a bit too much complexity. I was thinking more about having something like a |
|
Any comment on this one @kennknowles WDYT do we take the extension like approach or we merge as it is? Notice that zstd jar dep uses also JNI. |
|
Is it marked experimental? I think most new features should be, for a while. It might be hard to mark the right pieces of code, given how this fits in, but still seems a good idea. With that, I think as-is is fine. The implementation and tests are consistent with what we already have. I do think moving to an extension model would be a good improvement, and we can probably do it to all the pieces of the enum at the same time and this will not make it much harder. |
That sounds great. |
|
@jklukas I have been considering this PR since it does not add a compile time dependency (it 'only' depends on |
iemejia
left a comment
There was a problem hiding this comment.
LGTM, will do some minor adjustments and merge manually.
|
Merged ! |
Adds a dependency on
zstd-jniwhich declares no transitive dependencies,but otherwise just fills out enum values to expose the ZStandard support
that already exists in commons-compress.
Follow this checklist to help us incorporate your contribution quickly and easily:
[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.It will help us expedite review of your Pull Request if you tag someone (e.g.
@username) to look at it.Post-Commit Tests Status (on master branch)