pub fn compile_expression(
expr: &Expression,
columns: &[String],
) -> Result<SharedProgram>Expand description
Compile an expression to a program for a given column schema.
This is the recommended way to compile expressions for use in closures
or parallel execution. The returned CompactArc<Program> is Send + Sync and
can be shared across threads efficiently.
Note: Results are cached globally for performance. Repeated calls with the same expression and columns will return the cached program.
§Arguments
expr- The expression to compilecolumns- Column names for the schema
§Returns
CompactArc<Program>that can be executed withRowFilterorExprVM