#NEWLINE# def add_to_query( self , query , alias , col , source , is_summary ) : #NEWLINE# #INDENT# query . aggregates [ alias ] = BitAndSQL ( col , source = source , is_summary = is_summary , ** col . extra )