Skip to main content

Module engine

Module engine 

Source
Expand description

Engine-agnostic types, traits, and expression IR re-exported from robin-sparkless-core. Prefer these for engine-generic code and embeddings that should not depend on Polars.

Structs§

StructField
StructType
WhenBuilder
When-then-otherwise builder.
WhenThenBuilder

Enums§

DataType
EngineError
Unified error type for robin-sparkless operations.
ExprIr
Expression IR: a single, serializable tree that backends convert to their native Expr.
JoinType
LiteralValue
Literal value in an expression (engine-agnostic).

Traits§

DataFrameBackend
Backend for DataFrame operations. All expression arguments use ExprIr. Implementors can be downcast via as_any() for backend-specific operations (e.g. join).
DataFrameReaderBackend
Backend for reading files into a DataFrame.
GroupedDataBackend
Backend for GroupedData (result of group_by).
PlanExecutor
Executes a logical plan (JSON list of ops) and returns a DataFrame.
SparkSessionBackend
Backend for SparkSession: creates readers, tables, and DataFrames from data.

Functions§

alias
Alias an expression with a new output name.
and_
approx_count_distinct
between
bool_and
call
Generic function call (for the long tail of functions).
col
Column reference.
collect_list
collect_set
count
count_distinct
count_if
eq
every
first
ge
gt
is_in
is_null
kurtosis
le
lit_bool
lit_f64
lit_i32
lit_i64
lit_null
lit_str
lt
max
mean
median
min
mode
ne
not_
or_
skewness
std
stddev
stddev_pop
stddev_samp
sum
try_avg
try_sum
var_pop
var_samp
variance
when
Start a when(condition).then(…).otherwise(…) chain.

Type Aliases§

CollectedRows
Rows as list of maps: column name -> JSON value. Used by bindings and collect.