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

[vds/combiner] Better calculation of ref_block_max_length #14178

Merged

Conversation

chrisvittal
Copy link
Collaborator

Use the patch in place function of store_ref_block_max_length to compute ref_block_max_length rather than computing it on a zip join pipeline, causing that zip join pipeline to be executed twice.

Use the patch in place function of `store_ref_block_max_length` to
compute `ref_block_max_length` rather than computing it on a zip join
pipeline, causing that zip join pipeline to be executed twice.
)

vds.write(self._output_path)
hl.vds.store_ref_block_max_length(self._output_path)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree we shouldn't do this pass twice if not necessary, but is it not possible to compute this as we go so that we can just store this information in the globals? This feels like a hack that is pointing at some limitation of the Hail model.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It depends on the precise behavior of _localize=False in aggregate_entries if that causes one pass, then we're good, otherwise this is better as computing this from a full vds is better than redoing the join twice.

Copy link
Collaborator

@danking danking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, let's do the not terrible thing but I think this reveals a deficiency in the Hail Query language. Following up in Zulip: https://hail.zulipchat.com/#narrow/stream/123011-Hail-Query-Dev/topic/write.20.2B.20aggregate

@danking danking merged commit f56f579 into hail-is:main Jan 29, 2024
8 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants