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

DM-43146: query system updates from the DM-42740 review #971

Merged
merged 7 commits into from Mar 6, 2024

Conversation

TallJimbo
Copy link
Member

@TallJimbo TallJimbo commented Mar 4, 2024

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes (not user visible)

This drops DatasetQueryResults and ChainedDatasetResults, and renames
SingleTypeDatasetResults to DatasetRefQueryResults (we probably should
have always had "Ref" in there for consistency with other query result
types).

This lets us consolidate HomogeneousQueryBase and CountableQueryBase
into QueryBase and drop QueryDriver.resolve_collection_path.
Joining an unregistered dataset type is now just always an error, and
so is overriding the storage class in join_dataset_search.  This
simplifies some state and logic.
We now put parentheses around anything that isn't a literal or a column
reference whenever it appears in an expression, and hence we don't need
the 'precedence' property anymore.
Turns out DM-42740 actually got the value wrong (I was looking at the
length of run.host, not collection.name).
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

Attention: Patch coverage is 98.01980% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 88.88%. Comparing base (c40c3fe) to head (df5c1b1).

Files Patch % Lines
...lsst/daf/butler/queries/tree/_column_expression.py 66.66% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #971      +/-   ##
==========================================
- Coverage   88.88%   88.88%   -0.01%     
==========================================
  Files         329      329              
  Lines       42374    42241     -133     
  Branches     8741     8688      -53     
==========================================
- Hits        37663    37544     -119     
+ Misses       3457     3444      -13     
+ Partials     1254     1253       -1     

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

Copy link
Contributor

@dhirving dhirving left a comment

Choose a reason for hiding this comment

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

LGTM

@TallJimbo TallJimbo merged commit 34b0c27 into main Mar 6, 2024
18 checks passed
@TallJimbo TallJimbo deleted the tickets/DM-43146 branch March 6, 2024 14:53
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