rethinkdb_ecto icon indicating copy to clipboard operation
rethinkdb_ecto copied to clipboard

Adapter not working with Ecto 2.2.x

Open FrancisMurillo opened this issue 7 years ago • 5 comments

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.

FrancisMurillo avatar Oct 29 '17 01:10 FrancisMurillo

Can you give the version of Ecto you are using.

redrabbit avatar Nov 04 '17 13:11 redrabbit

@redrabbit My ecto version is 2.2.6.

FrancisMurillo avatar Nov 04 '17 13:11 FrancisMurillo

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 avatar Nov 04 '17 13:11 redrabbit

Any news on this?

renews avatar Apr 10 '18 13:04 renews

@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.

redrabbit avatar Apr 11 '18 13:04 redrabbit