parameters: (self, group_cols, column='id', aggregate='max')
docstring: This does a co-related subselect which finds the result of an
          aggregate function over a list of grouped columns
         
          Searching for the max version for each context of a snapshot.
          This is called by:
  
          search.add_aggregate_group_filter(['search_type','search_id','context'], "version")
  
          This producess the following sql:
  
          select * from snapshot where version = (select max(version) from snapshot as f where f.search_type = snapshot.search_type and f.search_id = snapshot.search_id and f.context = snapshot.context) order by search_type, search_id;
  
          Reference:
          http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/
docstring_summary: This does a co-related subselect which finds the result of an
          aggregate function over a list of grouped columns
         
          Searching for the max version for each context of a snapshot.
          This is called by:
docstring_tokens: This does a co - related subselect which finds the result of an aggregate function over a list of grouped columns Searching for the max version for each context of a snapshot . This is called by :
function: def add_group_aggregate_filter(self, group_cols, column='id', aggregate='max'):
          '''This does a co-related subselect which finds the result of an
          aggregate function over a list of grouped columns
         
          Searching for the max version for each context of a snapshot.
          This is called by:
  
          search.add_aggregate_group_filter(['search_type','search_id','context'], "version")
  
          This producess the following sql:
  
          select * from snapshot where version = (select max(version) from snapshot as f where f.search_type = snapshot.search_type and f.search_id = snapshot.search_id and f.context = snapshot.context) order by search_type, search_id;
  
          Reference:
          http://www.xaprb.com/blog/2006/12/07/how-to-select-the-firstleastmax-row-per-group-in-sql/
          
          '''
          self.select.add_group_aggregate_filter(group_cols, column, aggregate)
function_tokens: def add_group_aggregate_filter ( self , group_cols , column = 'id' , aggregate = 'max' ) : self . select . add_group_aggregate_filter ( group_cols , column , aggregate )