fix generator for streaming query api

self.record needs to be the generator itself, not the values generated