Skip to content

Multiple occurrences of query vars in pattern and aggregates #428

Open

Description

@zoren

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.

Activity

  1. tonsky commented on Feb 28, 2022

    @tonsky
    Owner

    Looks like it. Related: #336

  2. refset commented on Mar 20, 2023

    @refset
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions