Window has 50001 record (2 blocks on disk and 1 block in memory)
Size of the second block is >32Mb (2 splits)
When the last block is read from the disk only first split is actually loaded. The second split gets missed. The total count of the result dataset is correct, but some records are missing and another are duplicated.
Counts by 'grp' are incorrect!