Support CelOptions.enableComprehension(boolean)
for feature parity with CEL-Cpp
#484
Open
2 of 3 tasks
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_comprehension
to CEL-Java and CEL-Go (corresponding ticket google/cel-go#1050).CelOptions.enableComprehension
istrue
by 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
The text was updated successfully, but these errors were encountered: