Skip to content

Commit

Permalink
agg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coronabytes committed Sep 17, 2023
1 parent 6586a1a commit 57d2930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core.Arango.DevExtreme/ArangoTransform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private string Aggregate()
Summaries.Add($"{op}{leftSelector}");

if (op == "SUM" || op == "AVG" || op == "MIN" || op == "MAX" || op == "COUNT")
return $"{op}{leftSelector} = {op}({_settings.IteratorVar}.{rightSelector})";
return $"{op}{leftSelector} = {op}({rightSelector})";
return $"{op}{leftSelector} = SUM(0)";
}));
else if (_loadOption.TotalSummary?.Any() == true)
Expand All @@ -429,7 +429,7 @@ private string Aggregate()
Summaries.Add($"{op}{leftSelector}");

if (op == "SUM" || op == "AVG" || op == "MIN" || op == "MAX" || op == "COUNT")
return $"{op}{leftSelector} = {op}({_settings.IteratorVar}.{rightSelector})";
return $"{op}{leftSelector} = {op}({rightSelector})";
return $"{op}{leftSelector} = SUM(0)";
}));

Expand Down

0 comments on commit 57d2930

Please sign in to comment.