You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Add NULL-list guard for all predicate functions (all/any/none/single).
Wraps the result with CASE WHEN list IS NULL THEN NULL ELSE <result>
END in the grammar layer. This fixes single(x IN null WHERE ...)
returning false instead of NULL. The expr pointer is safely shared
between the NullTest and the predicate function node because AGE's
expression transformer creates new nodes without modifying the
parse tree in-place.
2. Fix single() block comment in transform_cypher_predicate_function:
described LIMIT 2 optimization but implementation uses plain
count(*). Updated comment to match actual implementation.
3. Keep #include "catalog/pg_aggregate.h" -- Copilot suggested removal
but AGGKIND_NORMAL macro requires it (build fails without it).
Regression test: predicate_functions OK.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments