apply_sum(), apply_avg(), etc. methods not working, ignore GROUP BY, etc.
Issue #876
resolved
the aggregate methods behave terribly right now and need updated test coverage, which takes into account criterion like GROUP BY, HAVING, etc. Additionally the way to get at aggregate results should be clarified. its possible that we should just stick with sum(), avg() and not really bother with apply_XXX since its not very clear that one needs to call one() to get results.
Comments (4)
-
-
reporter - changed status to resolved
apply_XXX is gone in 0.5, and func.XXX() whatever can be used with values() as well as query(XXX). group_by is applicable when you're using Query in a column-based fashion.
-
reporter - changed milestone to 0.5.0
-
reporter - removed milestone
Removing milestone: 0.5.0 (automated comment)
- Log in to comment
apply_*
are gone in query_columnsMaybe the pattern for .min/.max/.etc in the 0.5 line would be a scalar variant of values():