fn evaluate_expr_to_millisecond(
args: &[Expr],
i: usize,
interval_only: bool,
) -> Result<i64>
Expand description
Evaluate a time calculation expr, case like:
INTERVAL '1' day + INTERVAL '1 year 2 hours 3 minutes'
now() - INTERVAL '1' day
(wheninterval_only==false
)
Output a millisecond timestamp
if interval_only==true
, only accept expr with all interval type (case 2 will return a error)