Skip to content

[Bug] Calculating the nulls from position slices in chunks.#846

Merged
eddyxu merged 1 commit intomainfrom
lei/binary_nulls
May 10, 2023
Merged

[Bug] Calculating the nulls from position slices in chunks.#846
eddyxu merged 1 commit intomainfrom
lei/binary_nulls

Conversation

@eddyxu
Copy link
Copy Markdown
Member

@eddyxu eddyxu commented May 10, 2023

Closes #843

@eddyxu eddyxu requested a review from changhiskhan May 10, 2023 05:15
@eddyxu eddyxu force-pushed the lei/binary_nulls branch from 8288f6c to 8250805 Compare May 10, 2023 05:16
let b = unsafe {
std::slice::from_raw_parts(
arr.to_data().buffers()[1].as_ptr().offset(start as isize),
arr.to_data().buffers()[1].as_ptr().add(start),
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cargo clippy

.map(|b| b.as_usize() - start_offset + last_offset)
.for_each(|o| pos_builder.append_value(o as i64));
last_offset = pos_builder.values_slice()[pos_builder.len() - 1 as usize] as usize;
last_offset = pos_builder.values_slice()[pos_builder.len() - 1] as usize;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cargo clippy

@eddyxu eddyxu merged commit 170ccc8 into main May 10, 2023
@eddyxu eddyxu deleted the lei/binary_nulls branch May 10, 2023 06:30
@mrubash1
Copy link
Copy Markdown

Awesome - thanks @eddyxu and @changhiskhan !

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.

[Bug] Var-length binary throw errors when there are null values.

3 participants