risingwave_common::array::arrow

Trait ArrowIntervalTypeTrait

source
trait ArrowIntervalTypeTrait {
    // Required methods
    fn to_interval(self) -> Interval;
    fn from_interval(value: Interval) -> Self;
}
Expand description

Arrow 52 changed the interval type from i128 to arrow_buffer::IntervalMonthDayNano, so we introduced this trait to customize the conversion in arrow_impl.rs. We may delete this after all arrow versions are upgraded.

Required Methods§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ArrowIntervalTypeTrait for i128

source§

impl ArrowIntervalTypeTrait for IntervalMonthDayNano

source§

impl ArrowIntervalTypeTrait for IntervalMonthDayNano

Implementors§