Skip to content

Commit 4a80bc5

Browse files
committed
update
1 parent 9adab8b commit 4a80bc5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

rust/cubesqlplanner/cubesqlplanner/src/planner/planners/multi_stage_query_planner.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,13 @@ impl MultiStageQueryPlanner {
251251
if time_dimension.get_date_range().is_some() && result_granularity.is_some() {
252252
let granularity = time_dimension.get_granularity().unwrap(); //FIXME remove this unwrap
253253
let date_range = time_dimension.get_date_range().unwrap(); //FIXME remove this unwrap
254-
let seria = self
254+
let series = self
255255
.query_tools
256256
.base_tools()
257257
.generate_time_series(granularity, date_range.clone())?;
258-
if !seria.is_empty() {
259-
let new_from_date = seria.first().unwrap()[0].clone();
260-
let new_to_date = seria.last().unwrap()[1].clone();
258+
if !series.is_empty() {
259+
let new_from_date = series.first().unwrap()[0].clone();
260+
let new_to_date = series.last().unwrap()[1].clone();
261261
new_state.replace_range_in_date_filter(
262262
&time_dimension_name,
263263
new_from_date,
@@ -394,9 +394,9 @@ impl MultiStageQueryPlanner {
394394
}
395395

396396
let childs = member_childs(&member)?;
397-
398-
let description = if childs.is_empty() || !has_multi_stage_members(&member, false)? {
399-
if has_multi_stage_members(&member, false)? {
397+
let has_multi_stage_members = has_multi_stage_members(&member, false)?;
398+
let description = if childs.is_empty() || !has_multi_stage_members {
399+
if has_multi_stage_members {
400400
return Err(CubeError::internal(format!(
401401
"Leaf multi stage query cannot contain multi stage member"
402402
)));

0 commit comments

Comments
 (0)