Replies: 3 comments 1 reply
-
I found a workaround to get what I want:
But if I change |
Beta Was this translation helpful? Give feedback.
-
Hi @rvalek , Logica tries to have a simple compiler, so user can easily control the SQL query and thus optimize their program. So any predicate must be injectible or concrete. Concrete predicate can be compiled into SQL itself. The way It is quite possible that in the future we may want to make compiler more flexible and compile programs like your original, but it wasn't done yet. Hopefully this answer makes sense. Let me know if you have further questions. |
Beta Was this translation helpful? Give feedback.
-
@rvalek thank you very much for your supportive feedback! Don't hesitate to reach out if you have further questions. |
Beta Was this translation helpful? Give feedback.
-
Hey Evgeniy!
I'm trying to understand the aggregation behaviour and the errors I'm getting. The following snippet works fine:
However, if I make
MatchingMember
disctinct
, or change it to functional aggregation (List= member :-
), it no longer compiles:[ Error ] Found no way to assign variables: items, patterns. This error might also come from injected sub-rules.
Where is this coming from? Is there something I can do better?
Thank you!
~Robert
Beta Was this translation helpful? Give feedback.
All reactions