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
Change
To make CEL environment setup consistent across CEL implementations, I propose to add a runtime option equivalent to CEL-cpp InterpreterOptions.enable_comprehension to CEL-Java and CEL-Go (corresponding ticket cel-expr/cel-go#1050).
CelOptions.enableComprehension is true by default. Setting it to false will disable comprehension expressions (e.g. exists(), all() -- except has()). Under-the-hood it may simply call comprehensionMaxIterations(0) to disable comprehension expressions, and reset it to the default value to enable them.
Feature request checklist
Change
To make CEL environment setup consistent across CEL implementations, I propose to add a runtime option equivalent to CEL-cpp
InterpreterOptions.enable_comprehensionto CEL-Java and CEL-Go (corresponding ticket cel-expr/cel-go#1050).CelOptions.enableComprehensionistrueby default. Setting it to false will disable comprehension expressions (e.g.exists(),all()-- excepthas()). Under-the-hood it may simply callcomprehensionMaxIterations(0)to disable comprehension expressions, and reset it to the default value to enable them.Example
Related
Internal ref: go/grpc-cel-integration