Coder Social home page Coder Social logo

Comments (12)

zachdaniel avatar zachdaniel commented on July 20, 2024

This was harder than I thought it was going to be πŸ˜† Can you try main please? It should be fixed.

from ash_postgres.

lifeofdan avatar lifeofdan commented on July 20, 2024

@zachdaniel After pulling main I now have a different error.

image

from ash_postgres.

zachdaniel avatar zachdaniel commented on July 20, 2024

πŸ€” I've added the resource we're using to hydrate the expression, perhaps that will add some insight?

from ash_postgres.

lifeofdan avatar lifeofdan commented on July 20, 2024

That gives a little insight? It is the post resource, although that was probably already apparent.
image

from ash_postgres.

zachdaniel avatar zachdaniel commented on July 20, 2024

This one is tough :) Still working on it.

from ash_postgres.

zachdaniel avatar zachdaniel commented on July 20, 2024

Going to take some time to address, will let you know when I've got it figured out.

from ash_postgres.

zachdaniel avatar zachdaniel commented on July 20, 2024

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.

lifeofdan avatar lifeofdan commented on July 20, 2024

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.

zachdaniel avatar zachdaniel commented on July 20, 2024

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.

lifeofdan avatar lifeofdan commented on July 20, 2024

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.

zachdaniel avatar zachdaniel commented on July 20, 2024

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.

zachdaniel avatar zachdaniel commented on July 20, 2024

AFAIK this is fixed :)

from ash_postgres.

Related Issues (20)

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.