Support values requiring evaluation in with modifiers #701
Closed
Description
Today you must assign values requiring evaluation to local variables before using them in with
modifiers. For example, the following is not allowed:
foo = {"bar": 1}; data.foo with input as foo.bar
The easiest way to handle this would be to rewrite the with modifiers early in compilation the same way we do for rule heads, comprehension terms, etc.
So, for example, the query above would become:
foo = {"bar": 1}; __local0__ = foo.bar; data.foo with input as __local0__
Metadata
Assignees
Labels
No labels