MAPREDUCE-5569. FloatSplitter is not generating correct splits. Contributed by Nathan Roberts

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1530683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason Darrell Lowe 2013-10-09 15:43:36 +00:00
parent f6a2cac321
commit 7b7caa1e56
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -90,7 +90,7 @@ public List<InputSplit> split(Configuration conf, ResultSet results, String colN
// Catch any overage and create the closed interval for the last split.
if (curLower <= maxVal || splits.size() == 1) {
splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(
lowClausePrefix + Double.toString(curUpper),
lowClausePrefix + Double.toString(curLower),
colName + " <= " + Double.toString(maxVal)));
}