Skip to content
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

Updated test #5

Open
wants to merge 4 commits into
base: test_sliced
Choose a base branch
from

Conversation

jorgecarleitao
Copy link

No description provided.

data_pagesize_limit: None,
};
if array_len != 1 {
let array = array.sliced(2, array_len - 2);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was panicking due to array_len < 2.

let array = array.sliced(2, array_len - 2);
let (result, _) = write_and_read(array.clone(), version, compression, encodings)?;
assert_eq!(array.as_ref(), result.as_ref());
// stats change with slicing - ignore
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ignore stats comparison because stats after slicing change.


let row_groups =
RowGroupIterator::try_new(iter.into_iter(), &schema, options, vec![encodings.clone()])?;
fn write_and_read(
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored to a function for reuse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants