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

[compiler] fix pksorted case of LoweredTableReader #11355

merged 2 commits into from Feb 14, 2022


Copy link

@patrick-schultz patrick-schultz commented Feb 11, 2022

Fixes #11335.

@tpoterba made the replicating test, with that it was easy to find the source of the bug.

The error was in


where pkPartitioned is keyed by the partition key. In the test case, all rows have the same partition key, so the partitioner looks like [x, x], [x, x], .... In that case, strictify correctly collapses all those partitions into one, but partitioner.extendKeySamePartitions(keyType) tries to extend the key type without changing the partitioning, which in this case creates an invalid partitioner.

The fix is to use pkPartitioned.extendKeyPreservesPartitioning(key), which does the strictify and creates the correct partitioner.

@danking danking merged commit 2d01933 into hail-is:main Feb 14, 2022
@patrick-schultz patrick-schultz deleted the tracked/failing-lowered-vcf branch February 14, 2022 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

lowered table coercers construct invalid partitioners with prefix-sorted mode
4 participants