'Set the mask of aggregates that will actually be returned by the SELECT'

def set_aggregate_mask(self, names):

    if (names is None):
        self.aggregate_select_mask = None
    else:
        self.aggregate_select_mask = set(names)
    self._aggregate_select_cache = None
