Skip to main content

lit

Function lit 

Source
pub fn lit(value: impl Into<Scalar>) -> Expression
Expand description

Build an Expression::Literal from anything that converts into a Scalar.

Concise alternative to Expression::literal for plan builders. Accepts the same value types Scalar does (i32, i64, &str, bool, …).

use delta_kernel::expressions::lit;
let _zero = lit(0i64);