def make_grpc_request(self, result_id, source_id):
        aggregates = []
        for agg in self.combo_aggregation.aggregates:
            aggregates.append(agg.make_grpc_request())

        return table_pb2.ComboAggregateRequest(result_id=result_id,
                                               source_id=source_id,
                                               aggregates=aggregates,
                                               group_by_columns=self.column_names)
    def make_grpc_request(self, result_id, source_id):
        aggregates = []
        if self.agg_type == AggType.COUNT and self.count_column:
            agg = table_pb2.ComboAggregateRequest.Aggregate(type=self.agg_type.value, column_name=self.count_column)
        else:
            agg = table_pb2.ComboAggregateRequest.Aggregate(type=self.agg_type.value)
        aggregates.append(agg)

        return table_pb2.ComboAggregateRequest(result_id=result_id,
                                               source_id=source_id,
                                               aggregates=aggregates,
                                               group_by_columns=self.column_names)