Closed pcompassion closed 8 years ago
I'd like to do something like Player.objects.values('player_type', 'team').order_by().annotate(Count('player_type'), Count('team'))
Player.objects.values('player_type', 'team').order_by().annotate(Count('player_type'), Count('team'))
It seems like group by is coming to cassandra soon https://issues.apache.org/jira/browse/CASSANDRA-10707
group by
Is there a way to use CQL and map the results to queryset-like objects in django-cassandra-engine when group_by is added to cassandra?
group_by
(of course using the same values, annotate, Sum as in the above example would be best, but I dobut it's currently possible)
values
annotate
Sum
Hi @pcompassion! You should probably ask this question here: https://github.com/datastax/python-driver
I'd like to do something like
Player.objects.values('player_type', 'team').order_by().annotate(Count('player_type'), Count('team'))
It seems like
group by
is coming to cassandra soon https://issues.apache.org/jira/browse/CASSANDRA-10707Is there a way to use CQL and map the results to queryset-like objects in django-cassandra-engine when
group_by
is added to cassandra?(of course using the same
values
,annotate
,Sum
as in the above example would be best, but I dobut it's currently possible)