[BZ-1032040] fix CCE using query in stream mode with reteoo