Skip to main content

Module expr_eval

Module expr_eval 

Source
Expand description

Expression evaluation helper functions.

This module extracts high-complexity expression evaluation logic from the main executor to reduce cognitive complexity and improve maintainability.

Functionsยง

cypher_eq
Deep equality comparison with Cypher-compliant numeric coercion and 3-valued logic. Returns Some(bool) for True/False, and None for Null/Unknown.
eval_binary_op
Evaluate a binary operation on two already-evaluated values.
eval_in_op
Evaluate IN operator.
eval_scalar_function
Evaluate a built-in scalar function.
eval_vector_distance
Evaluate vector distance between two vectors.
eval_vector_similarity
Evaluate vector similarity between two vectors (cosine similarity).
is_scalar_function
Check if a function name is a known scalar function (not aggregate).