Skip to content

Commit

Permalink
chore: fix code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Taylor-lagrange committed May 7, 2024
1 parent f3001a4 commit a62e33b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/query/src/range_select/plan_rewrite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,12 @@ fn evaluate_expr_to_millisecond(args: &[Expr], i: usize) -> DFResult<i64> {
}
_ => None,
}
.ok_or(DataFusionError::Plan(format!(
"{} is not a expr can be evaluate and use in range query",
expr.display_name().unwrap_or_default()
)))
.ok_or_else(|| {
DataFusionError::Plan(format!(
"{} is not a expr can be evaluate and use in range query",
expr.display_name().unwrap_or_default()
))
})
}

/// Parse the `align to` clause and return a UTC timestamp with unit of millisecond,
Expand Down

0 comments on commit a62e33b

Please sign in to comment.