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

Copying CompressedPages to new file #224

Open
little-arhat opened this issue Mar 30, 2023 · 1 comment
Open

Copying CompressedPages to new file #224

little-arhat opened this issue Mar 30, 2023 · 1 comment

Comments

@little-arhat
Copy link

Hello!

Thansk for this crate!

I'm writing concat tool to merge multiple parquet files into one.
When reading CompressedPages with PageReader, I get back CompessedPages with .selected_rows = None.

When I try to write those pages, write_page expects Some(selected_rows), and my program ultimately fails with "All data pages must declare the number of rows on it" --

Error::oos("All data pages must declare the number of rows on it")
.

Is this hard requirement of parquet format? Can I pass 0 instead, or do I have to decompress/deser & ser/compress pages to copy them to new file?

@little-arhat
Copy link
Author

Any tips?

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

No branches or pull requests

1 participant