You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "JigaoLuo (via GitHub)" <gi...@apache.org> on 2025/05/31 14:04:41 UTC
[PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
JigaoLuo opened a new pull request, #7576:
URL: https://github.com/apache/arrow-rs/pull/7576
# Which issue does this PR close?
Closes #7575.
# Rationale for this change
Need a option to set encoding for all columns.
# What changes are included in this PR?
This PR:
- introduces an encoding parameter for `set_encoding`.
- groups the encoding-related code part together in the file.
# Are there any user-facing changes?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576#issuecomment-2931227462
> Is this a breaking change (CLI args)?
I would tend to say "no" but I don't really have a strong justification. Maybe other maintainers have some thoughts on the matter
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on code in PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576#discussion_r2118189910
##########
parquet/src/bin/parquet-rewrite.rs:
##########
@@ -252,6 +303,19 @@ fn main() {
if let Some(value) = args.compression {
writer_properties_builder = writer_properties_builder.set_compression(value.into());
}
+ {
Review Comment:
I don't think this extra level of braces is necessary (there is nothing in the scope that needs the change)
Perhaps we could remove the extra level of nesting?
##########
parquet/src/bin/parquet-rewrite.rs:
##########
@@ -168,10 +215,14 @@ struct Args {
#[clap(short, long)]
output: String,
- /// Compression used.
+ /// Compression used for any column.
#[clap(long, value_enum)]
compression: Option<CompressionArgs>,
+ /// Encoding used for any column, if dictionary is not enabled.
Review Comment:
```suggestion
/// Encoding used for all columns, if dictionary is not enabled.
```
##########
parquet/src/bin/parquet-rewrite.rs:
##########
@@ -168,10 +215,14 @@ struct Args {
#[clap(short, long)]
output: String,
- /// Compression used.
+ /// Compression used for any column.
Review Comment:
```suggestion
/// Compression used for all columns
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "JigaoLuo (via GitHub)" <gi...@apache.org>.
JigaoLuo commented on PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576#issuecomment-2925674116
Hi @alamb ,
Thanks for reviewing. I addressed the following:
- replace `any column` to `all columns`
- remove the unnecessary scope
- (also moving lines around)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "JigaoLuo (via GitHub)" <gi...@apache.org>.
JigaoLuo commented on PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576#issuecomment-2925227423
If this could be merged, I also left some questions to be discussed in the review.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576#issuecomment-2954091359
Let's bias towards action and merge this one in.
Thank you again @JigaoLuo and @mbrobbel
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Adding Encoding argument in `parquet-rewrite` [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #7576:
URL: https://github.com/apache/arrow-rs/pull/7576
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org