pub fn checked_add(lhs: Expression, rhs: Expression) -> ExpressionExpand description
Create a new Binary using the Add operator.
ยงExample usage
let xs = buffer![1, 2, 3].into_array();
let result = xs.apply(&checked_add(root(), lit(5))).unwrap();
let mut ctx = LEGACY_SESSION.create_execution_ctx();
assert_eq!(
&result.execute_arrow(None, &mut ctx).unwrap(),
&buffer![6, 7, 8]
.into_array()
.execute_arrow(None, &mut ctx)
.unwrap()
);