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:
parent
f6a2cac321
commit
7b7caa1e56
@ -199,6 +199,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
|
||||||
|
@ -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.
|
// 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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user