Skip to main content

interval_day_precision_units

Function interval_day_precision_units 

Source
fn interval_day_precision_units(interval: &IntervalDayToSecond) -> (i32, i64)
Expand description

The precision and sub-second count of an IntervalDayToSecond, as stored.

The deprecated microseconds precision mode is normalized to precision 6, since that field is microseconds by definition. An unset precision_mode also means microseconds: that is Substrait’s documented meaning for interval values recorded before precision_mode existed, and it matches the default the type textifier uses for Type.IntervalDay with no precision.