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

[query] better error message when info array field has missing elements #14105

Merged
merged 9 commits into from
Jan 11, 2024

Conversation

danking
Copy link
Contributor

@danking danking commented Dec 18, 2023

Fixes #13346.

Another user was confused by this: #14102. Unfortunately, the world appears to have embraced missing values in VCF array fields even though the single element case is ambiguous. In #13346, I proposed a scheme by which we can disambiguate many of the cases, but implementing it ran into challenges because LoadVCF.scala does not expose whether or not an INFO field was a literal "." or elided entirely from that line.

Anyway, this error message actually points users to the fix. I also changed some method names such that every method is ArrayType and never TypeArray.

Fixes hail-is#13346.

Another user was confused by this: hail-is#14102. Unfortunately, the world
appears to have embraced missing values in VCF array fields even though the single element case is
ambiguous. In hail-is#13346, I proposed a scheme by which we can disambiguate many of the cases, but implementing
it ran into challenges because LoadVCF.scala does not expose whether or not an INFO field was a literal
"." or elided entirely from that line.

Anyway, this error message actually points users to the fix. I also changed some method names such that
every method is ArrayType and never TypeArray.
@danking
Copy link
Contributor Author

danking commented Jan 4, 2024

Redistribute some work away from Patrick.

@danking
Copy link
Contributor Author

danking commented Jan 9, 2024

bump; merge conflicts now fixed.

@danking danking mentioned this pull request Jan 9, 2024
@danking
Copy link
Contributor Author

danking commented Jan 11, 2024

@chrisvittal bump, I want to include this in 0.2.127!

Copy link
Collaborator

@chrisvittal chrisvittal left a comment

Choose a reason for hiding this comment

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

done!

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

Successfully merging this pull request may close these issues.

[query] bad error message when user needs to use array_elements_required=False
3 participants