Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Adapter not working with Ecto 2.2.x #41

Open
FrancisMurillo opened this issue Oct 29, 2017 · 5 comments
Open

Adapter not working with Ecto 2.2.x #41

FrancisMurillo opened this issue Oct 29, 2017 · 5 comments

Comments

@FrancisMurillo
Copy link

Hello,

I followed the directions in setting up an Api.Repo. Everytime I use Api.Repo.all(Api.Tick), I get the following error

** (KeyError) key :fields not found in: %{prefix: nil, preloads: [], select: %{assocs: [], postprocess: {:from, :any, {:source, :from}}, preprocess: [{:source, {"ticks", Api.Tick}, [id: :binary_id, buy: :decimal, sell: :decimal, inserted_at: :naive_datetime, updated_at: :naive_datetime]}], take: []}, sources: {{"ticks", Api.Tick}}}
    (rethinkdb_ecto) lib/rethinkdb_ecto.ex:162: RethinkDB.Ecto.execute/6
    (ecto) lib/ecto/repo/queryable.ex:133: Ecto.Repo.Queryable.execute/5
    (ecto) lib/ecto/repo/queryable.ex:37: Ecto.Repo.Queryable.all/4

Any idea how to resolve this would be great.

@redrabbit
Copy link
Member

Can you give the version of Ecto you are using.

@FrancisMurillo
Copy link
Author

@redrabbit My ecto version is 2.2.6.

@redrabbit
Copy link
Member

Some changes between Ecto 2.1.x and 2.2.x break things for the RethinkDB adapter. I'm investigating this. Meanwhile, you could use Ecto 2.1.

@redrabbit redrabbit added the bug label Nov 4, 2017
@redrabbit redrabbit changed the title :fields missing when doing Repo.all Adapter not working with Ecto 2.2.x Nov 4, 2017
Lida pushed a commit to livecirrus/rethinkdb_ecto that referenced this issue Nov 12, 2017
@renews
Copy link

renews commented Apr 10, 2018

Any news on this?

@redrabbit
Copy link
Member

redrabbit commented Apr 11, 2018

@renews, I did not find time to come with a fix for this. I will give it a try once I have a little spare time. Any kind of help (investigations, code-review, PRs) is very welcome.

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

No branches or pull requests

3 participants