Skip to content

Commit

Permalink
Merge pull request #6551 from GawainLynch/hotfix/koalas-cant-count
Browse files Browse the repository at this point in the history
[3.2] Reset GROUP BY and JOIN parameters for count()
  • Loading branch information
bobdenotter committed Apr 7, 2017
2 parents 9eedc8a + 2d248bc commit e5a8a66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Storage/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function count()
{
$qb = $this->getLoadQuery()
->select('COUNT(' . $this->getAlias() . '.id) as count')
->resetQueryParts(['groupBy', 'join'])
;
$result = $qb->execute()->fetchColumn(0);

Expand Down

0 comments on commit e5a8a66

Please sign in to comment.