Comments (12)
This was harder than I thought it was going to be π Can you try main
please? It should be fixed.
from ash_postgres.
@zachdaniel After pulling main
I now have a different error.
from ash_postgres.
π€ I've added the resource we're using to hydrate the expression, perhaps that will add some insight?
from ash_postgres.
That gives a little insight? It is the post resource, although that was probably already apparent.
from ash_postgres.
This one is tough :) Still working on it.
from ash_postgres.
Going to take some time to address, will let you know when I've got it figured out.
from ash_postgres.
You know what...I just realized I've been chasing down something that we actually just don't currently support π’ Specifically, aggregates can't use other aggregates as their field
. In this case, it's an aggregate using a calculation that refers to an aggregate. I'd like to make this work, and it was always on the docket to do so, but it is quite complex and really amounts to an additional feature in some ways.
from ash_postgres.
So, if this doesn't work (which is fine, I understand this is a bit nested). Why does test "complex calculation while using actor on related resource passes reference" work? Isn't this also a calc referring to an agg referring to a calc that refers to an agg? What is the big difference between these two?
from ash_postgres.
That one just happens to work I think π It has to do with the fact that they are "first optimizable aggregates" AFAICT.
from ash_postgres.
Interesting. I'm glad our other use case works as it is much more important to us! π
If you want to close this as wontfix
that is okay. We will use another method to do what we need since this is not actually supported. My bad! Ty for your time on this. :)
from ash_postgres.
I'm going to see what I can do to make this work, but it may involve some changes in core and a bit more work :)
from ash_postgres.
AFAIK this is fixed :)
from ash_postgres.
Related Issues (20)
- parent does not work from within an aggregate filter HOT 1
- protocol Jason.Encoder not implemented for dynamic ([], []) of type Ecto.Query.DynamicExpr HOT 1
- After upgrading to Ash 3 and latest postgres, complex nested aggregate fails HOT 1
- PSQL QUERY ERROR on updating json fields with nested objects containing arrays HOT 1
- Canβt rollback only 1 migration ago with `mix ash.rollback` HOT 2
- Proposal for `ash_postgres.squash_snapshots` mix task HOT 1
- Changing identities leads to generation of erroneous migrations HOT 1
- The maximum length of the index name is not considered HOT 2
- `Identity.where` is not working HOT 3
- Removing an attribute generates a migration with commented out changes, but snapshot with the changes HOT 5
- Handle the new Ecto parameterized type format
- Error thrown if relationship aggregate is used in update with atomic_update HOT 4
- Don't sort identity keys when creating unique indexes
- Updates from GraphQL broken
- Exceeding index limit gives confusing error message
- NaiveDateTime value breaks queries with Map type HOT 6
- Error when attempting to install ash_postgres using Igniter
- An action combining two change commands blows up HOT 1
- Table names generated by the generators should be pluralized
- `configure_runtime/3` runs on repeat installs HOT 2
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 ash_postgres.