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

ARROW-5129: [Rust] Column writer bug: check dictionary encoder when adding a new data page #4152

Closed
wants to merge 3 commits into from

Conversation

sadikovi
Copy link
Contributor

This PR fixes the issue when we would encode all data into a single data page, unless we fall back to secondary encoder. Added test to verify the correctness of the patch.

Test is a bit awkward and clunky, but that is the only way I could come up to test the patch, since I need to check the written pages (I could not get "adding buffer to TestPageWriter" to work because of the box + lifetime issues).

@sadikovi
Copy link
Contributor Author

ping @sunchao. Can you review? Thanks!

@nevi-me
Copy link
Contributor

nevi-me commented Apr 14, 2019

hi @sadikovi, may you please format the title of the PR as ARROW-5129: [Rust] ..., thanks :)

@sunchao sunchao changed the title [ARROW-5129] Check dictionary encoder when adding a new data page in Parquet column writer ARROW-5129: [Rust] Column writer bug: check dictionary encoder when adding a new data page Apr 14, 2019
Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

LGTM!

@sunchao sunchao closed this in 6241a38 Apr 14, 2019
@sadikovi
Copy link
Contributor Author

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants