Skip to content

Commit dae44a4

Browse files
authored
fix(tesseract): Fix join condition for toDate Rolling Window (#9738)
1 parent 5b2682c commit dae44a4

File tree

1 file changed

+2
-2
lines changed
  • rust/cubesqlplanner/cubesqlplanner/src/plan

1 file changed

+2
-2
lines changed

rust/cubesqlplanner/cubesqlplanner/src/plan/join.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ impl ToDateRollingWindowJoinCondition {
146146
let date_column = self.time_dimension.to_sql(templates, context)?;
147147

148148
let date_from =
149-
templates.column_reference(&Some(self.time_series_source.clone()), "date_to")?;
150-
let date_to =
151149
templates.column_reference(&Some(self.time_series_source.clone()), "date_from")?;
150+
let date_to =
151+
templates.column_reference(&Some(self.time_series_source.clone()), "date_to")?;
152152
let date_from = templates.rolling_window_expr_timestamp_cast(&date_from)?;
153153
let date_to = templates.rolling_window_expr_timestamp_cast(&date_to)?;
154154
let grouped_from = templates.time_grouped_column(self.granularity.clone(), date_from)?;

0 commit comments

Comments
 (0)