-
Notifications
You must be signed in to change notification settings - Fork 94
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
Don't add measure-level filters to post-agg filters #1452
Conversation
ON | ||
subq_15.ds = subq_13.metric_time__day | ||
) subq_16 | ||
WHERE metric_time__day > '2020-01-01' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
booking__is_instant
measure-level filter is not applied here
...ntics/metricflow_semantics/test_helpers/semantic_manifest_yamls/simple_manifest/metrics.yaml
Outdated
Show resolved
Hide resolved
...ntics/metricflow_semantics/test_helpers/semantic_manifest_yamls/simple_manifest/metrics.yaml
Show resolved
Hide resolved
a3e07bf
to
2affb6d
Compare
de0a385
to
b21dc21
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!! Should be good to go once you add those check query tests!
metricflow-semantics/metricflow_semantics/specs/where_filter/where_filter_spec_set.py
Outdated
Show resolved
Hide resolved
metricflow-semantics/metricflow_semantics/specs/where_filter/where_filter_spec_set.py
Show resolved
Hide resolved
After rebasing and adding the check query tests, can you run the SQL engine tests on this PR too? |
548ba21
to
87c62a6
Compare
87c62a6
to
4b35f88
Compare
## Context After merging #1452, seems like snapshots in MF-semantics were missing (CI still passed - odd). But updated those and also updated the script to update snapshots in MF semantics as that seems to be missing.
Context
We should respect filter hierarchy and have,
Meaning, measure-level filters should not be applied post-aggregation.
Refactor
Changed
filter_specs
from being a tuple of filter specs all mashed together to aWhereFilterSpecSet
where it stores which levels each of the filters were defined at. This was changed insideMetricSpec
andMetricInputMeasureSpec
.Resolves SL-2956