File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ pub struct Options {
260
260
#[ arg(
261
261
long = "compression-algo" ,
262
262
env = "P_PARQUET_COMPRESSION_ALGO" ,
263
- default_value = "lz4 " ,
263
+ default_value = "lz4_raw " ,
264
264
value_parser = validation:: compression,
265
265
help = "Parquet compression algorithm"
266
266
) ]
Original file line number Diff line number Diff line change @@ -129,10 +129,9 @@ impl Correlations {
129
129
. await ?;
130
130
131
131
// Update in memory
132
- self . write ( ) . await . insert (
133
- correlation. id . to_owned ( ) ,
134
- correlation. clone ( ) ,
135
- ) ;
132
+ self . write ( )
133
+ . await
134
+ . insert ( correlation. id . to_owned ( ) , correlation. clone ( ) ) ;
136
135
137
136
Ok ( correlation)
138
137
}
Original file line number Diff line number Diff line change @@ -168,8 +168,9 @@ pub enum Compression {
168
168
Gzip ,
169
169
Lzo ,
170
170
Brotli ,
171
- #[ default]
172
171
Lz4 ,
172
+ #[ default]
173
+ Lz4Raw ,
173
174
Zstd ,
174
175
}
175
176
@@ -182,6 +183,7 @@ impl From<Compression> for parquet::basic::Compression {
182
183
Compression :: Lzo => parquet:: basic:: Compression :: LZO ,
183
184
Compression :: Brotli => parquet:: basic:: Compression :: BROTLI ( BrotliLevel :: default ( ) ) ,
184
185
Compression :: Lz4 => parquet:: basic:: Compression :: LZ4 ,
186
+ Compression :: Lz4Raw => parquet:: basic:: Compression :: LZ4_RAW ,
185
187
Compression :: Zstd => parquet:: basic:: Compression :: ZSTD ( ZstdLevel :: default ( ) ) ,
186
188
}
187
189
}
@@ -277,6 +279,7 @@ pub mod validation {
277
279
"lzo" => Ok ( Compression :: Lzo ) ,
278
280
"brotli" => Ok ( Compression :: Brotli ) ,
279
281
"lz4" => Ok ( Compression :: Lz4 ) ,
282
+ "lz4_raw" => Ok ( Compression :: Lz4Raw ) ,
280
283
"zstd" => Ok ( Compression :: Zstd ) ,
281
284
_ => Err ( "Invalid COMPRESSION provided" . to_string ( ) ) ,
282
285
}
You can’t perform that action at this time.
0 commit comments