Comments (3)
To be clear, the things we need for a complete solution are:
- Remove the existing double-filter logic
- Enable pushdown of metric_time or agg_time_dimension filters to the time_spine
This issue should be closed when the first of these is complete, and predicate pushdown will account for the time spine in a more natural way. I've linked it to that main tracking task so we don't forget to push to time spine, but that's hardly a thing I'm likely to forget given the layout of the code.
from metricflow.
@tomkit.lento I don't think we want to remove the double-filter logic, do we? My thought is that we'll end up with the scenario where you've selected a categorical dimension, filtered out nulls, and then we join them back in so you see nulls in the output. I think the customer would expect the where filter to override the join_to_timespine
directive.
My proposed solution is to only apply the second filter if the filtered spec is also requested in the group by (since those should be the only ones that might return unexpected results).
from metricflow.
Related Issues (20)
- [SL-1877] Update dbt documentation to reflect the new install mechanism for the metricflow command line
- [SL-1878] Clean up metricflow distribution package
- [Bug] Derived and ratio metrics do not consider fill_nulls_with HOT 3
- Release dbt-metricflow 0.7.0
- [SL-1928] Move simple property updates/property merges out of InstanceSetTransform
- [SL-1967] Add support for statistical aggregate functions HOT 1
- [SL-1973] [Feature] Add limit and order to saved query spec
- [Feature] Leverage other python lib to generate sql code instead of hand-crafting all platform-specific code HOT 2
- [SL-2009] Remove SemanticModelAccessor and MetricAccessor protocols
- [SL-2103] [Feature] Create `metricflow-semantics` Package
- [SL-2110] [Feature] Add a Dependency Resolver for Saved Queries
- [Bug] Cannot use filtered and unfiltered metric based on same measure together in one metric HOT 1
- [SL-2147] [Bug] You should be able to silence Pydantic warning for multiple identical input measures HOT 2
- [SL-2184] Conversion metrics do not apply filters to input conversion measures HOT 1
- [SL-2194] Conversion metrics cannot render queries with filters unless the element is in the group by
- [SL-2201] Conversion Metric Filtering Tasklist
- [SL-2217] [Feature] Support period-over-period calculations at query time
- [SL-2236] [SL-2237] [Feature] Add default filter for join_to_timespine
- [SL-2251] [Bug] Error when trying to add a time dimension at a monthly grain as a non-additive dimension
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metricflow.