Hi Andrew

My understanding is that these values may be different when there is a
schema element with repetition_type=repeated, like a list typed column for
example. num_values is the total number of leaf-level values, including
nulls, and matches the field with the same name in the V1 header. num_rows
is the number of logical rows, so would be the number of lists, including
nulls, for a list typed column. V2 data pages are guaranteed to be split
across row boundaries, so a page will always contain an integer number of
rows. V1 pages in comparison are allowed to be split in the middle of a row.

Cheers,
Adam

On Thu, 22 Oct 2026 at 05:12, Andrew Bell <[email protected]> wrote:

> Hi,
>
> Can someone please explain the difference between "num_values" and
> "num_rows" in the DataPageHeaderV2 metadata structure?
>
> Thanks,
>
> --
> Andrew Bell
> [email protected]
>

Reply via email to