fn parse_duration_expr(args: &[Expr], i: usize) -> Result<Duration>
Expand description
Parse a duraion expr:
- duration string (e.g.
'1h'
) - Interval expr (e.g.
INTERVAL '1 year 3 hours 20 minutes'
) - An interval expr can be evaluated at the logical plan stage (e.g.
INTERVAL '2' day - INTERVAL '1' day
)