datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
onetom 2020-11-23T04:14:05.472100Z

Our Datomic Cloud subcription is not showing up on the AWS Marketplace / Manage subscriptions https://console.aws.amazon.com/marketplace/home?region=ap-southeast-1#/subscriptions is that expected? I see other subscriptions though from Container / Machine Image and CloudFormation categories...

tatut 2020-11-23T06:53:39.473700Z

the analytics doesn’t seem to work if db-name contains a dash - character, I’m getting Query 20201123_062629_00002_8pm43 failed: Expected string for :db-name when trying a query, but it works if db name contains only characters

joshkh 2020-11-23T12:33:18.480600Z

huh. for what it's worth, i'm running analytics on a db with a dash in its name without an issue

tatut 2020-11-23T13:40:23.482700Z

good to know, maybe it has some other issue, or it was a presto cli problem

tatut 2020-11-23T06:55:10.473800Z

I had a test db that was named project-2020-11-13 with a date and it didn’t work but the db named just project worked fine

2020-11-23T09:36:34.477700Z

I have relation when order has customet attribute and can access customer via: [?o :order/customer ?c] The same way I can access order if I have query of customers. Also I can use get-else when order has no customer. But how can I filter customers without orders? (not [?o :order/customer ?c]) gives an error

:db.error/insufficient-binding [?o] not bound in not clause: (not-join [?o ?c] [?o :order/customer ?c])

2020-11-23T09:58:00.478500Z

Seems that this way works:

(not-join [?c]
[?o :order/customer ?c])

2020-11-23T10:00:02.479900Z

And also seems that not is a sugar on not-join, allowing not to set bindings explicitly and manually

2020-11-23T10:10:31.480500Z

Hmm, seems that (not [_ :order/customer ?c]) also works

kschltz 2020-11-23T12:41:28.480800Z

@ivana it seems to me that issue lies entirely in the binding

henrik 2020-11-23T13:59:17.483700Z

[Cloud/Ions] Does all deps have to be under :deps, or can aliases be specified when pushing?

henrik 2020-11-24T13:56:27.492200Z

Ah, too bad. Had a good composable thing going, but I’m going to have to dump it all in :deps then. 🤷

souenzzo 2020-11-23T20:53:53.484Z

no, AFIK, you can specify an alias As I dig (not documented or explained by anyone): the datomic-cloud instance will download your code, open your deps.edn, take the :deps make and decide which deps it will use (something like, it do not use #tools-deps or at least, not as a simple command line)