You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does it make sense for Transit BigIntegers and BigDecimals to be comparable?
The specific issue that I ran into is that Transit values cannot be indexed by DataScript:
Uncaught Error: Cannot compare [TaggedValue: n, 37502364230516917834597274526242608522740435501611847496456113203943353843903] to [TaggedValue: n, 37746944873274413711073286601178981016490453790917975016109108374206467768511]
at cljs$core$compare (core.cljs:2241)
at datascript$db$cmp_val (db.cljc:288)
at datascript$db$cmp_datoms_avet (db.cljc:311)
at datascript$btset$binary_search_l (btset.cljc:72)
at datascript$btset$_seek (btset.cljc:951)
at datascript$btset$_slice (btset.cljc:979)
at Function.datascript.btset.slice.cljs$core$IFn$_invoke$arity$3 (btset.cljc:990)
at datascript$btset$slice (btset.cljc:985)
at Function.datascript.btset.slice.cljs$core$IFn$_invoke$arity$2 (btset.cljc:988)
at datascript$btset$slice (btset.cljc:985)
The text was updated successfully, but these errors were encountered:
TaggedValue shouldn’t implement IComparable, it’s a sign your transit reader isn’t doing its job. It’s a wrapper to store anything transit doesn’t know how to read. Find what to translate it to, register transit handler and make sure the type you’ll be translating to is comparable. Fix that, and DataScript will be happy.
Does it make sense for Transit BigIntegers and BigDecimals to be comparable?
The specific issue that I ran into is that Transit values cannot be indexed by DataScript:
The text was updated successfully, but these errors were encountered: