Function datafusion::common::scalar::op_ym_dt
source · pub fn op_ym_dt(lhs: i32, rhs: i64, sign: i32, commute: bool) -> i128
Expand description
This function adds/subtracts two “raw” intervals (lhs
and rhs
) of different
types (IntervalYearMonthType
and IntervalDayTimeType
, respectively).
The argument sign
chooses between addition and subtraction, the argument
commute
swaps lhs
and rhs
. The return value is an 128-bit integer.
It can be involved in a IntervalMonthDayNanoType
in the outer scope.