-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add support for xz file compression and compression
feature
#3993
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.
Seems like a good change to me 👍
The only thing I worry about is the new dependency. Not sure if it is worth making optional or not now
@@ -2702,6 +2715,15 @@ dependencies = [ | |||
"winapi", | |||
] | |||
|
|||
[[package]] |
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.
for anyone following along, xz is now a new dependency
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.
maybe worth creating an optional feature?
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.
🤔 I wonder if we should make a feature for "support compression" as a similar argument could be made for bzip, etc
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.
feature gate added
5270a80
to
2adab03
Compare
compression
feature
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 @jimexist
52ccbe9
to
9d4028b
Compare
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 great -- thanks @jimexist
.github/workflows/rust.yml
Outdated
@@ -98,7 +98,7 @@ jobs: | |||
- name: Run tests | |||
run: | | |||
export PATH=$PATH:$HOME/d/protoc/bin | |||
cargo test --features avro,jit,scheduler,json | |||
cargo test --features avro,jit,scheduler,json,compression |
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.
👍
3032946
to
d3f6057
Compare
datafusion/core/Cargo.toml
Outdated
@@ -41,12 +41,13 @@ path = "src/lib.rs" | |||
# Used to enable the avro format | |||
avro = ["apache-avro", "num-traits", "datafusion-common/avro"] | |||
crypto_expressions = ["datafusion-physical-expr/crypto_expressions"] | |||
default = ["crypto_expressions", "regex_expressions", "unicode_expressions"] | |||
default = ["compression", "crypto_expressions", "regex_expressions", "unicode_expressions"] |
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.
@alamb turns out it's harder than just putting it into the default features
What happened with this PR? It appears to have some minor conflicts. @jimexist would you like help getting this through? |
ac97e0e
to
a9d0bd2
Compare
something broken about tests without |
@alamb this is ready to merge |
Benchmark runs are scheduled for baseline = 010aded and contender = e34c6c3. e34c6c3 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
Thanks @jimexist ! |
Which issue does this PR close?
.xz
compressed files #4074Rationale for this change
add support for xz file compression
What changes are included in this PR?
Are there any user-facing changes?