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_
btic_ function - Evaluate BTIC accessor and predicate functions.
- eval_
in_ op - Evaluate IN operator.
- eval_
scalar_ function - Evaluate a built-in scalar function.
- eval_
split - eval_
vector_ distance - Evaluate vector distance between two vectors.
- eval_
vector_ similarity - Evaluate vector similarity between two vectors (cosine similarity).
- is_
btic_ function - Check if an uppercase function name is a known BTIC scalar function.
- is_
scalar_ function - Check if a function name is a known scalar function (not aggregate).
- temporal_
from_ human_ readable_ str - Parse a human-readable ISO 8601 temporal string (e.g.
"12:35:15+05:00","2024-01-15") into aTemporalValueby classifying and evaluating it. - temporal_
from_ map_ wrapper - Try to interpret a map as a temporal value.
- temporal_
from_ value - Extract a
TemporalValuefrom anyValuevariant that can represent one.