Fork me on GitHub
#datomic
<
2018-12-26
>
whilo19:12:52

is there a reason why function calls in queries can only get one data source?

whilo19:12:12

This yields: AssertionError Assert failed: Can't have more than one data source in expression (< (count sources) 2) datomic.datalog/expr-clause (datalog.clj:1171)

whilo10:12:30

Any ideas to work around this issue?

Dustin Getz18:12:23

your original comment with the query is lost but can you split it into two queries?

eoliphant12:12:04

Are you using the client api. AFAIK it still doesn’t support cross-database joins

whilo19:12:34

pointing to the passing of $ and $foo to the nested query.

whilo19:12:18

any function hits this restriction, but this subquery demonstrates the use case i am trying to cover

whilo19:12:59

i do not see a technical necessity for this right away. in datahike/datascript it works fine.