Comments (3)
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.
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.
Hey, @santaux
Seems like everything is fine :)
Thanks for update
Closing the issue
from clickhouse_ecto.
Related Issues (12)
- Limit query does not work correctly
- Can not use ecto multy HOT 2
- ecto.migrate cannot create migration table HOT 1
- Hex.pm code/dependencies outdated HOT 1
- Ecto 3 HOT 1
- No migration rollbacks
- Doesn't work with the latest version of clickhousex
- Authorization doesn't work with later versions of Clickhouse HOT 1
- Possible typo HOT 2
- WITH TOTALS dont work HOT 1
- Positional parameters HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse_ecto.