Merge pull request #2764 from jon-wei/time_and_dims

Remove unnecessary type check in TimeAndDimsComp
This commit is contained in:
Fangjin Yang 2016-03-30 19:55:32 -07:00
commit 73176a3930
1 changed files with 0 additions and 20 deletions

View File

@ -1240,26 +1240,6 @@ public abstract class IncrementalIndex<AggregatorType> implements Iterable<Row>,
int index = 0; int index = 0;
while (retVal == 0 && index < numComparisons) { while (retVal == 0 && index < numComparisons) {
ValueType lhsType = lhs.types[index];
ValueType rhsType = rhs.types[index];
if (lhsType == null) {
if (rhsType == null) {
++index;
continue;
}
return -1;
}
if (rhsType == null) {
return 1;
}
retVal = lhsType.compareTo(rhsType);
if (retVal != 0) {
return retVal;
}
final int[] lhsIdxs = lhs.dims[index]; final int[] lhsIdxs = lhs.dims[index];
final int[] rhsIdxs = rhs.dims[index]; final int[] rhsIdxs = rhs.dims[index];