File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
rust/cubesqlplanner/cubesqlplanner/src/planner/planners Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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 ) ) ) ;
You can’t perform that action at this time.
0 commit comments