Druid adapter gets an error while fetching data. As mentioned in Druid documentation,
Note that in the second query, an offset is specified and that it is 1 greater than the largest offset found in the initial results. To return the next "page", this offset must be incremented by 1 (should be decremented by 1 for descending query), with each new query, but with option fromNext enabled, this operation is not needed. When an empty results set is received, the very last page has been returned.
Also, previousOffset may not be reasonable, see DruidQuery. I think whether we have already fetched all data is decided by the next request. If we don't have any data returned on next request, that means fetching is done.