Fix deprecated on check cube return, removed has_key
implemented groupby on stream data return