Skip to content

Commit 028d602

Browse files
committed
fix the infinite loop eval of calendar time shifts
1 parent cc1a1e6 commit 028d602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/cubesqlplanner/cubesqlplanner/src/planner/sql_evaluator/symbols/dimension_symbol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ impl SymbolFactory for DimensionSymbolFactory {
386386

387387
// If the cube is a calendar, we need to find the primary key member
388388
// so that we can use it for time shifts processing.
389-
let time_shift_pk = if is_calendar {
389+
let time_shift_pk = if is_calendar && !time_shift.is_empty() {
390390
let pk_members = cube_evaluator
391391
.static_data()
392392
.primary_keys

0 commit comments

Comments
 (0)