Netflix / PigPen

Map-Reduce for Clojure
Apache License 2.0
565 stars 55 forks source link

Coerce ints to longs during serialization #58

Open mbossenbroek opened 10 years ago

mbossenbroek commented 10 years ago

Clojure's value equality states that integers and longs of the same value are equal, but because pigpen serializes them differently, they are treated as not equal in joins.

=> (= (int 42) (long 42))
true

We should convert all ints to longs before serializing, with an option to disable this behavior. Also, look into how floats/doubles are handled.