From 0559e825fbe751931859d5f7ff0ba8f41bedead1 Mon Sep 17 00:00:00 2001 From: Alexandr Romanenko Date: Tue, 1 Jul 2025 18:17:16 +0200 Subject: [PATCH] fix(tesseract): Fix join condition for toDate Rolling Window --- rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs b/rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs index 93c3bfa3a458c..66171dc9ce231 100644 --- a/rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs +++ b/rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs @@ -146,9 +146,9 @@ impl ToDateRollingWindowJoinCondition { let date_column = self.time_dimension.to_sql(templates, context)?; let date_from = - templates.column_reference(&Some(self.time_series_source.clone()), "date_to")?; - let date_to = templates.column_reference(&Some(self.time_series_source.clone()), "date_from")?; + let date_to = + templates.column_reference(&Some(self.time_series_source.clone()), "date_to")?; let date_from = templates.rolling_window_expr_timestamp_cast(&date_from)?; let date_to = templates.rolling_window_expr_timestamp_cast(&date_to)?; let grouped_from = templates.time_grouped_column(self.granularity.clone(), date_from)?;