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

Replace :binary_id with Ecto.UUID #6

Open
mrusme opened this issue Apr 9, 2017 · 1 comment
Open

Replace :binary_id with Ecto.UUID #6

mrusme opened this issue Apr 9, 2017 · 1 comment

Comments

@mrusme
Copy link

mrusme commented Apr 9, 2017

As documented on this issue here, it's impossible to get Poison.Encoder to derive valid JSON from an Cassandra Ecto repo, as long as :binary_id was set as the type for the @primary_key. It took me a day to dig into this issue and try & error - in the end José suggested to try Ecto.UUID instead of :binary_id, which seems to have does the trick.

Maybe you would like to adjust the documentation for Cassandra Ecto so that it mentions this solution for everyone else who might have this issue while using Cassandra UUID primary keys?

@mrusme
Copy link
Author

mrusme commented Apr 9, 2017

Update: According to @michalmuskala this might be a bug in cassandra_ecto's implementation.

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

No branches or pull requests

1 participant