Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

106 #118

Closed
wants to merge 2 commits into
from
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Split
@@ -219,7 +219,10 @@ public BigInteger getToken() {
// that will later be dropped
if (firstPage) {
firstPage = false;
- predicate.getSlice_range().setCount(predicate.getSlice_range().getCount() + 1);
+ // 106 - avoid wraparounds when using ThriftUtils.RANGE_ALL
+ if(! (predicate.getSlice_range().getCount() == Integer.MAX_VALUE)) {
+ predicate.getSlice_range().setCount(predicate.getSlice_range().getCount() + 1);
+ }
}
else {
if (!columnList.isEmpty())