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
When I define a spec with s/def, write a function that uses this spec somehow, and then use this function within keg/rdd, I am getting a "Unable to resolve spec" error. As a very simplified example:
It is a known issue. Spec uses an atom as the repo and atoms are not
synchroyacross the cluster as it makes little sense in general.
A workaround is to dirty the repo var manually.
Le lun. 27 mars 2017 à 20:50, matthew-tijerina <[email protected]> a
écrit :
When I define a spec with s/def, write a function that uses this spec
somehow, and then use this function within keg/rdd, I am getting a
"Unable to resolve spec" error. As a very simplified example:
(s/def ::odd-int (s/and int? odd?))
(defn nums-are-odd-ints? [num]
(s/valid? ::odd-int num))
(into [] (keg/rdd [1 3 5 7 9 11] (map nums-are-odd-ints?)))
An exception was caused by: java.lang.Exception (Unable to resolve spec: :user/odd-int)
I am running powderkeg.repl in yarn-client mode.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#29>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC3sfhUKrV6uKw9olVD0-miqhR52dviks5rqATtgaJpZM4MqrC->
.
When I define a spec with
s/def
, write a function that uses this spec somehow, and then use this function withinkeg/rdd
, I am getting a "Unable to resolve spec" error. As a very simplified example:I am running powderkeg.repl in yarn-client mode.
The text was updated successfully, but these errors were encountered: