Skip to content

Commit 92664e9

Browse files
committed
fix
1 parent 70aa286 commit 92664e9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

rust/cubesqlplanner/cubesqlplanner/src/physical_plan_builder/processors/multi_stage_rolling_window.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,15 @@ impl<'a> LogicalNodeProcessor<'a, MultiStageRollingWindow>
119119
}
120120

121121
for dim in rolling_window.schema.dimensions.iter() {
122-
references_builder.resolve_references_for_member(
123-
dim.clone(),
124-
&Some(measure_input_alias.clone()),
125-
&mut render_references,
126-
)?;
122+
if dim.clone().resolve_reference_chain()
123+
!= time_dimension.clone().resolve_reference_chain()
124+
{
125+
references_builder.resolve_references_for_member(
126+
dim.clone(),
127+
&Some(measure_input_alias.clone()),
128+
&mut render_references,
129+
)?;
130+
}
127131
let alias = references_builder
128132
.resolve_alias_for_member(&dim, &Some(measure_input_alias.clone()));
129133
select_builder.add_projection_member(dim, alias);

0 commit comments

Comments
 (0)