#NEWLINE# def _case_aggregate_having( self ) : #NEWLINE# #INDENT# t1 = self . con . table ( 'star1' ) #NEWLINE# total = t1 . f . sum ( ) . name ( 'total' ) #NEWLINE# metrics = [ total ] #NEWLINE# e1 = t1 . aggregate ( metrics , by = [ 'foo_id' ] , having = [ ( total > 10 ) ] ) #NEWLINE# e2 = t1 . aggregate ( metrics , by = [ 'foo_id' ] , having = [ ( t1 . count ( ) > 100 ) ] ) #NEWLINE# return ( self , e2 )