Coder Social home page Coder Social logo

Comments (3)

santaux avatar santaux commented on September 28, 2024 1

At least your example works in our example app:

Interactive Elixir (1.5.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> import Ecto.Query
Ecto.Query
iex(2)> ExampleApp.Repo.all ExampleApp.Click                     
[debug] QUERY OK source="clicks" db=2.9ms
SELECT c0."date", c0."site_id", c0."source", c0."ip", c0."score", c0."width", c0."height", c0."inserted_at" FROM "clicks" AS c0 []
[]
iex(3)> query1 = ExampleApp.Click |> select([c], %{ip: c.ip})
#Ecto.Query<from c in ExampleApp.Click, select: %{ip: c.ip}>
iex(4)> from c in subquery(query1), select: c.ip
#Ecto.Query<from c in subquery(from c in ExampleApp.Click,
  select: %{ip: c.ip}),
 select: c.ip>
iex(5)> ExampleApp.Repo.all from c in subquery(query1), select: c.ip
[debug] QUERY OK db=2.5ms
SELECT s0."ip" FROM (SELECT c0."ip" AS "ip" FROM "clicks" AS c0) AS s0 []
[]
iex(6)>

from clickhouse_ecto.

santaux avatar santaux commented on September 28, 2024

Hi @sck-v ,
Sorry for late answer. This bug was fixed in version 0.2.4. Please, check it out: d850d04

Does it work for you? Can I close the issue?

from clickhouse_ecto.

sck-v avatar sck-v commented on September 28, 2024

Hey, @santaux

Seems like everything is fine :)
Thanks for update

Closing the issue

from clickhouse_ecto.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.