Skip to content

Commit

Permalink
remove catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Feb 5, 2025
1 parent e1825b5 commit 8e82d13
Showing 1 changed file with 6 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,23 +195,16 @@ public CM_COV_Object centralMoment(CMOperator op, int nRows) {

@Override
public AColGroup rexpandCols(int max, boolean ignore, boolean cast, int nRows) {
try {
IDictionary d = _dict.rexpandCols(max, ignore, cast, _colIndexes.size());
if(d == null) {
if(max <= 0)
return null;
return ColGroupEmpty.create(max);
}
else {
IColIndex outCols = ColIndexFactory.create(d.getNumberOfColumns(_dict.getNumberOfValues(1)));
return copyAndSet(outCols, d);
}
}
catch(DMLCompressionException e) {
IDictionary d = _dict.rexpandCols(max, ignore, cast, _colIndexes.size());
if(d == null) {
if(max <= 0)
return null;
return ColGroupEmpty.create(max);
}
else {
IColIndex outCols = ColIndexFactory.create(d.getNumberOfColumns(_dict.getNumberOfValues(1)));
return copyAndSet(outCols, d);
}
}

@Override
Expand Down

0 comments on commit 8e82d13

Please sign in to comment.