public function getGroupByCols()
    {
        if (!$this->containsAggregates()) {
            return [$this];
        }
        $cols = [];
        foreach ($this->getSourceExpressions() as $sourceExpression) {
            $cols[] = $sourceExpression->getGroupByCols();
        }

        return $cols;
    }