-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
greedily combine chunks before compressing (#783)
feat: before compressing, collapse chunks of a chunked array targeting chunks of 16 MiB or 64Ki rows.
- Loading branch information
Showing
7 changed files
with
256 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#[macro_export] | ||
macro_rules! assert_arrays_eq { | ||
($expected:expr, $actual:expr) => { | ||
let expected: Array = $expected.into(); | ||
let actual: Array = $actual.into(); | ||
assert_eq!(expected.dtype(), actual.dtype()); | ||
|
||
let expected_contents = (0..expected.len()) | ||
.map(|idx| scalar_at(&expected, idx).map(|x| x.into_value())) | ||
.collect::<VortexResult<Vec<_>>>() | ||
.unwrap(); | ||
let actual_contents = (0..actual.len()) | ||
.map(|idx| scalar_at(&expected, idx).map(|x| x.into_value())) | ||
.collect::<VortexResult<Vec<_>>>() | ||
.unwrap(); | ||
|
||
assert_eq!(expected_contents, actual_contents); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mod assertions; | ||
mod bool; | ||
mod chunked; | ||
mod constant; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters