Skip to content

Copying CompressedPages to new file #224

Description

@little-arhat

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions