We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b625de4 commit 434e1c6Copy full SHA for 434e1c6
rust/cubesqlplanner/cubesqlplanner/src/logical_plan/optimizers/pre_aggregation/dimension_matcher.rs
@@ -185,7 +185,11 @@ impl<'a> DimensionMatcher<'a> {
185
add_to_matched_dimension: bool,
186
) -> Result<MatchState, CubeError> {
187
let granularity = if self.pre_aggregation.allow_non_strict_date_range_match {
188
- time_dimension.granularity().clone()
+ if let Some(granularity) = time_dimension.granularity_obj() {
189
+ granularity.min_granularity()?
190
+ } else {
191
+ time_dimension.granularity().clone()
192
+ }
193
} else {
194
time_dimension.rollup_granularity(self.query_tools.clone())?
195
};
0 commit comments