svn merge -c 1530683 FIXES: MAPREDUCE-5569. FloatSplitter is not generating correct splits. Contributed by Nathan Roberts

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1530684 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Darrell Lowe 2013-10-09 15:44:47 +00:00
parent 39d1443e3f
commit d5f32b0fab
2 changed files with 4 additions and 1 deletions

View File

@ -62,6 +62,9 @@ Release 2.2.1 - UNRELEASED
BUG FIXES BUG FIXES
MAPREDUCE-5569. FloatSplitter is not generating correct splits (Nathan
Roberts via jlowe)
Release 2.2.0 - 2013-10-13 Release 2.2.0 - 2013-10-13
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -90,7 +90,7 @@ public class FloatSplitter implements DBSplitter {
// Catch any overage and create the closed interval for the last split. // Catch any overage and create the closed interval for the last split.
if (curLower <= maxVal || splits.size() == 1) { if (curLower <= maxVal || splits.size() == 1) {
splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit( splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(
lowClausePrefix + Double.toString(curUpper), lowClausePrefix + Double.toString(curLower),
colName + " <= " + Double.toString(maxVal))); colName + " <= " + Double.toString(maxVal)));
} }