Skip to content

Ensure folded expressions prune originals from reference and type maps - #1517

Merged
TristonianJones merged 2 commits into
cel-expr:masterfrom
TristonianJones:folding-meta-fix
Sep 28, 2026
Merged

TristonianJones merged 2 commits into
cel-expr:masterfrom
TristonianJones:folding-meta-fix

Conversation

@TristonianJones

Copy link
Copy Markdown
Collaborator

Mutations to the AST via folding must clear or update type and reference metadata
to prevent errant folds from happening during later folding checks.

Closes #1504

Comment thread cel/folding.go
@TristonianJones
TristonianJones merged commit 1cafdf4 into cel-expr:master Sep 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constant folding of [1, 2].filter(e, false) and [1].all(e, true) gives null instead of the macro's result

2 participants