Query.is_valid_query does not validate required params for 'distinct' query