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_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 a TemporalValue by classifying and evaluating it.
temporal_from_map_wrapper
Try to interpret a map as a temporal value.
temporal_from_value
Extract a TemporalValue from any Value variant that can represent one.