Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
Signed-off-by: Ruihang Xia <[email protected]>
  • Loading branch information
waynexia committed Dec 19, 2024
1 parent 4250c5f commit ce74bb7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/query/src/log_query/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ impl LogQueryPlanner {

let expr = col(timestamp_col.clone())
.gt_eq(lit(ScalarValue::Utf8(time_filter.start.clone())))
.and(col(timestamp_col).lt_eq(lit(ScalarValue::Utf8(time_filter.end.clone().unwrap_or_else(|| "9999-12-31T23:59:59Z".to_string())))));
.and(
col(timestamp_col).lt_eq(lit(ScalarValue::Utf8(
time_filter
.end
.clone()
.or(Some("9999-12-31T23:59:59Z".to_string())),
))),
);

Ok(expr)
}
Expand Down

0 comments on commit ce74bb7

Please sign in to comment.