Skip to content

Commit 2682aea

Browse files
committed
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
1 parent c86c5c0 commit 2682aea

File tree

2 files changed

+4
-1
lines changed
  • hadoop-mapreduce-project

2 files changed

+4
-1
lines changed

hadoop-mapreduce-project/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ Release 2.2.1 - UNRELEASED
199199

200200
BUG FIXES
201201

202+
MAPREDUCE-5569. FloatSplitter is not generating correct splits (Nathan
203+
Roberts via jlowe)
204+
202205
Release 2.2.0 - 2013-10-13
203206

204207
INCOMPATIBLE CHANGES

hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/lib/db/FloatSplitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public List<InputSplit> split(Configuration conf, ResultSet results, String colN
9090
// Catch any overage and create the closed interval for the last split.
9191
if (curLower <= maxVal || splits.size() == 1) {
9292
splits.add(new DataDrivenDBInputFormat.DataDrivenDBInputSplit(
93-
lowClausePrefix + Double.toString(curUpper),
93+
lowClausePrefix + Double.toString(curLower),
9494
colName + " <= " + Double.toString(maxVal)));
9595
}
9696

0 commit comments

Comments
 (0)