File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -636,10 +636,10 @@ impl SymbolFactory for MeasureSymbolFactory {
636636 return Err ( CubeError :: user ( format ! (
637637 "Measure cannot mix common unnamed and named time_shifts." ,
638638 ) ) ) ;
639- } else if common_shift . is_some ( ) {
640- Some ( MeasureTimeShifts :: Common ( common_shift . unwrap ( ) ) )
641- } else if named_shift . is_some ( ) {
642- Some ( MeasureTimeShifts :: Named ( named_shift . unwrap ( ) ) )
639+ } else if let Some ( cs ) = common_shift {
640+ Some ( MeasureTimeShifts :: Common ( cs ) )
641+ } else if let Some ( ns ) = named_shift {
642+ Some ( MeasureTimeShifts :: Named ( ns ) )
643643 } else {
644644 Some ( MeasureTimeShifts :: Dimensions (
645645 shifts. into_values ( ) . collect_vec ( ) ,
You can’t perform that action at this time.
0 commit comments