public function generateQuery(IDruidQueryParameters $params)
    {
        if(!$params instanceof GroupByQueryParameters)
        {
            throw new Exception('Expected $params to be instanceof GroupByQueryParameters');
        }

        $params->validate();
        $query = $params->getJSONString();
        return $query;
    }