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 689bb82 commit 31e6e5cCopy full SHA for 31e6e5c
rust/cubesqlplanner/cubesqlplanner/src/logical_plan/optimizers/pre_aggregation/optimizer.rs
@@ -49,10 +49,9 @@ impl PreAggregationOptimizer {
49
query: Rc<Query>,
50
pre_aggregation: &Rc<CompiledPreAggregation>,
51
) -> Result<Option<Rc<Query>>, CubeError> {
52
- let is_external = pre_aggregation.external.unwrap_or_default();
53
if query.multistage_members.is_empty() {
54
self.try_rewrite_simple_query(&query, pre_aggregation)
55
- } else if is_external && !self.allow_multi_stage {
+ } else if !self.allow_multi_stage {
56
Ok(None)
57
} else {
58
self.try_rewrite_query_with_multistages(&query, pre_aggregation)
0 commit comments