Skip to main content

Module pure

Module pure 

Source

Structsยง

ImpureAnalyzer ๐Ÿ”’
MaterializationAnalyzer ๐Ÿ”’
Finds UDFs that keep their evaluated results materialized on retract streams, that is, UDFs without unsafe_skip_materializing_exprs.

Functionsยง

impure_expr_desc
Returns the description of the impure expression if it is impure, for error reporting. None if the expression is pure.
is_impure
The inverse of is_pure.
is_impure_func_call
is_pure
Returns whether every function in the expression always produces the same result for the same inputs, so that the expression can be re-evaluated or moved by the optimizer.
needs_materialization
Returns whether a streaming project on a retract stream must materialize the evaluated results of the expression: when the expression is impure, or when it calls a UDF without unsafe_skip_materializing_exprs.