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

Clarify missing column messages #1604

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Aug 27, 2024

Description of proposed changes

See commit messages and linked issue

Related issue(s)

Closes #1592

Checklist

  • Automated checks pass
  • Check if you need to add a changelog message
  • Check if you need to add tests
  • Check if you need to update docs

@victorlin victorlin self-assigned this Aug 27, 2024
The previous text "Ignoring it" seemed contradictory when it appeared
directly before an error:

    WARNING: Column 'QC_rare_mutations' does not exist in the metadata file. Ignoring it.
    ERROR: Query contains a column that does not exist in metadata.
The goal is to show the name of the missing column in the error message.
Something like this would be ideal:

    ERROR: Query contains a column 'invalid' that does not exist in metadata

However, UndefinedVariableError does not expose the column name apart
from being in the error message text. Showing the entire message text is
slightly redundant, but seems better than parsing the column name out of
message text that's subject to change.
@victorlin victorlin force-pushed the victorlin/clarify-missing-column-messages branch from eec6b05 to 03e2b69 Compare August 27, 2024 23:19
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.02%. Comparing base (f05cb32) to head (03e2b69).
Report is 110 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1604   +/-   ##
=======================================
  Coverage   71.02%   71.02%           
=======================================
  Files          79       79           
  Lines        8256     8256           
  Branches     2003     2003           
=======================================
  Hits         5864     5864           
  Misses       2101     2101           
  Partials      291      291           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@victorlin victorlin merged commit d662698 into master Aug 27, 2024
28 checks passed
@victorlin victorlin deleted the victorlin/clarify-missing-column-messages branch August 27, 2024 23:48
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.

filter: Confusing warning and error combination when query contains a missing column
2 participants