Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coerce ints to longs during serialization #58

Open
mbossenbroek opened this issue Sep 11, 2014 · 0 comments
Open

Coerce ints to longs during serialization #58

mbossenbroek opened this issue Sep 11, 2014 · 0 comments
Labels

Comments

@mbossenbroek
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant