Skip to main content

reject_func_modifiers

Function reject_func_modifiers 

Source
fn reject_func_modifiers(func: &Function, clause: &str) -> Result<()>
Expand description

Rejects function-call modifiers on the specially-lowered MATCH_RECOGNIZE functions: the MEASURES aggregates and FIRST/LAST/CLASSIFIER, and the DEFINE navigation functions PREV/NEXT/FIRST/LAST. Both lowerings match these by name and read only the argument list, so a modifier would be dropped and the plain call evaluated, silently producing wrong results. clause names the clause for the error message (MEASURES or DEFINE).