-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aggregates inside with_variable gives incorrect result #33382
Comments
Ah.... the combination would be the culprit...?
I had suggested to add it to the list of variables and not only inside examples to make it more visible but it did not get a positive reply, so we just add it in the user manual. I still think it's worth it. |
I've the same problem and seems with_valiable is not expanded... I'm doing a query to an second layer, btw a simplified use case is updating a field in a layer getting a value from a second one basing a quey... e.g. in field calculator:
a simplified use case gives always wrong result and seems with_variable is not expanded (the same happen using eval)
|
I'm using pre-release 3.16 master version 7216045 |
tnx @3nids building right now |
@3nids in my case the PR fixes the issue. |
Describe the bug
When using any aggregate function (e.g.
minimum
) inside awith_variable
, the result seems to be wrongly cached, even if it's not cachable.How to Reproduce
id
column, which can contain any value (as long as it's unique per row)"id" = with_variable('outer_id', "id", minimum("id", filter := "id" = @outer_id))
(guess who only just learned of@parent
, lol)QGIS and OS versions
The text was updated successfully, but these errors were encountered: