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

Multiple occurrences of query vars in pattern and aggregates #428

Open
zoren opened this issue Feb 25, 2022 · 2 comments
Open

Multiple occurrences of query vars in pattern and aggregates #428

zoren opened this issue Feb 25, 2022 · 2 comments

Comments

@zoren
Copy link
Contributor

zoren commented Feb 25, 2022

With this query:

(q '[:find (count ?e) .
     :with ?i
     :where [?e :r ?e ?i]]
   [[1 :r 1 10]
    [2 :r 1 11]])

I get 1 with Datomic but 2 in datascript. It appears the test for two occurrences of a query variable is tested too late.

@tonsky
Copy link
Owner

tonsky commented Feb 28, 2022

Looks like it. Related: #336

@refset
Copy link
Contributor

refset commented Mar 20, 2023

I think this self-unification issue is related too: #240

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

3 participants