Skip to main content

Module transform

Module transform 

Source
Expand description

Transform Engine

Pipeline transforms applied to binding values. Transforms are chained with | pipes: sort | unique | first(3)

§Categories

CategoryOps
Stringupper, lower, trim, trim_start, trim_end
Collectionlength, first, last, first(N), last(N), keys, values, flatten, reverse, sort, unique, compact
Type conversionto_string, to_number, to_bool, to_json, parse_json
Numericround(N), abs, ceil, floor
Utilitydefault(V), type_of, join(S), split(S), shell

§Null Handling

  • Propagating: null in → null out (length, keys, type_of, to_string, to_json)
  • Failing: null in → NIKA-153 error (upper, lower, sort, etc.)
  • Use default() or ?? to handle nulls safely

Structs§

TransformExpr
A chain of transform operations: sort | unique | first(3)
TransformParseError
Error parsing a transform expression (NIKA-151)

Enums§

TransformError
Error applying a transform (NIKA-152 type mismatch, NIKA-153 null input)
TransformOp
A single transform operation