Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Free variables should be implicitly distinct #119

Open
lvh opened this issue Mar 29, 2016 · 1 comment
Open

Free variables should be implicitly distinct #119

lvh opened this issue Mar 29, 2016 · 1 comment

Comments

@lvh
Copy link
Contributor

lvh commented Mar 29, 2016

Right now, multiple fresh variables are not implicitly distinct. For example, with the events [{:ip "10.0.0.1"}], the query '(= (:ip x) (:ip y) "10.0.0.1") will (correctly!) result in: [[{:ip "10.0.0.1"} {:ip "10.0.0.1"}]]. While this is correct from a logic program perspective, this is probably not what the SOC wants. We can solve this by applying distincto to all of the logic variables.

@lvh lvh added this to the Advanced querying milestone Mar 29, 2016
@lvh
Copy link
Contributor Author

lvh commented Mar 29, 2016

This of course gets combinatorically worse once you add more logic variables.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant