Bug report #15930
Aggregate functions don't seem to work with virtual fields
|Affected QGIS version:||2.18.10||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23847|
Only test with sum, count_distinct.
sum("value", "id_zone") works well with standard fields but return NULL value with virtual fields
#8 Updated by Frank Broniewski about 5 years ago
jd lom wrote:
Frank Broniewski wrote:
Is the fix already implemented in 2.18.14? I am having this issue too, the right values on preview and in fields, but not working with virtual fields.
The fix is only implementend on master. Not sure it will be on 2.18.
Ah, OK thanks for the info. Luckily I got around the problem by using a OGR virtual file.
#9 Updated by Dan Isaacs over 4 years ago
Nyall Dawson wrote:
Applied in changeset qgis|3f4d6de54b476176724877c5a490665fa3dcb9df.
I've just come across this problem in 2.18.18. When you say it's been implemented on the master, does this mean that, for me, the only way to get this problem fixed is to move to 3.0, or this there some patch I could apply?