Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensions with iteration index/key #509

Open
oridag opened this issue Nov 27, 2024 · 1 comment
Open

Comprehensions with iteration index/key #509

oridag opened this issue Nov 27, 2024 · 1 comment

Comments

@oridag
Copy link
Contributor

oridag commented Nov 27, 2024

I see that AST support for comprehensions that include an extra iterVar that is populated with the index (lists) or key (maps) was recently introduced in the expr proto:
googleapis/googleapis@24be099

Any guidance on if and when we can expect it in the cel-java runtime?

@l46kok
Copy link
Collaborator

l46kok commented Nov 27, 2024

Support for two variable comprehensions will be added for CEL-Java in the future. This was added in cel-go recently, so we'll just need to port this over: google/cel-go#1034. We don't know when yet, but my guess is that we'll start tackling this sometime in early 2025. The feature is pretty self contained -- we wouldn't mind accepting contribution on the port if you need this much sooner.

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

No branches or pull requests

2 participants