Skip to content

Commit

Permalink
Bump pcodec to 0.2.0
Browse files Browse the repository at this point in the history
Bump pcodec to 0.2.0

Pump pcodec to 0.2.1
  • Loading branch information
LDeakin committed Mar 21, 2024
1 parent 37149b2 commit 23a9b51
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed
- **Breaking**: Bump MSRV to 1.73 (5 October, 2023)
- Bump `pco` (pcodec) to 0.2.1

## [0.12.5] - 2024-03-17

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ object_store = { version = "0.9.0", optional = true }
opendal = { version = "0.45", optional = true }
parking_lot = "0.12"
pathdiff = "0.2"
pco = { version = "0.1.3", optional = true }
pco = { version = "0.2.1", optional = true }
rayon = "1.6"
rayon_iter_concurrent_limit = "0.2.0"
reqwest = { version = "0.11", features = ["blocking"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion src/array/codec/array_to_bytes/pcodec/pcodec_codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl ArrayCodecTraits for PcodecCodec {
let data_type = decoded_representation.data_type();
macro_rules! pcodec_decode {
( $t:ty ) => {
pco::standalone::auto_decompress(encoded_value.as_slice())
pco::standalone::simple_decompress(encoded_value.as_slice())
.map(|bytes| transmute_to_bytes_vec::<$t>(bytes))
.map_err(|err| CodecError::Other(err.to_string()))
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ fn do_partial_decode(
Some(decoded_value) => {
macro_rules! pcodec_partial_decode {
( $t:ty ) => {
let decoded_chunk = pco::standalone::auto_decompress(decoded_value.as_slice())
.map(|bytes| crate::array::transmute_to_bytes_vec::<$t>(bytes))
.map_err(|err| CodecError::Other(err.to_string()))?;
let decoded_chunk =
pco::standalone::simple_decompress(decoded_value.as_slice())
.map(|bytes| crate::array::transmute_to_bytes_vec::<$t>(bytes))
.map_err(|err| CodecError::Other(err.to_string()))?;
for array_subset in decoded_regions {
let bytes_subset = array_subset
.extract_bytes(
Expand Down

0 comments on commit 23a9b51

Please sign in to comment.