Closed myu07 closed 7 years ago
FYI. Still getting this problem with 0.4.3-SNAPSHOT.
This issue surprised me a lot as we do use protocols. I've narrowed the problem it appears only with boxed scalar types. It's a ser/deser issue not specific to protocols:
=> (into [] (keg/rdd [Boolean Long Double Float Byte Character] (map identity)))
[boolean long double float byte char]
When running in yarn-client mode, I'm getting an exception when invoking clojure.data.json's write-str function.
I was able to narrow down the root cause. Basically, the implementations of clojure.data.json's JSONWriter protocol "-write" method do not exist in the nodes.
(extend java.lang.Long JSONWriter {:-write write-plain})
I was able to verify the root cause after executing these simple lines of codes in the repl: