Support to query all values at once if chunk streaming is selected

 Support to query all values at once if chunk streaming is selected by setting the chunk size <= 0.