Skip to content

Commit 8e82d13

Browse files
committed
remove catch
1 parent e1825b5 commit 8e82d13

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/main/java/org/apache/sysds/runtime/compress/colgroup/AColGroupValue.java

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,23 +195,16 @@ public CM_COV_Object centralMoment(CMOperator op, int nRows) {
195195

196196
@Override
197197
public AColGroup rexpandCols(int max, boolean ignore, boolean cast, int nRows) {
198-
try {
199-
IDictionary d = _dict.rexpandCols(max, ignore, cast, _colIndexes.size());
200-
if(d == null) {
201-
if(max <= 0)
202-
return null;
203-
return ColGroupEmpty.create(max);
204-
}
205-
else {
206-
IColIndex outCols = ColIndexFactory.create(d.getNumberOfColumns(_dict.getNumberOfValues(1)));
207-
return copyAndSet(outCols, d);
208-
}
209-
}
210-
catch(DMLCompressionException e) {
198+
IDictionary d = _dict.rexpandCols(max, ignore, cast, _colIndexes.size());
199+
if(d == null) {
211200
if(max <= 0)
212201
return null;
213202
return ColGroupEmpty.create(max);
214203
}
204+
else {
205+
IColIndex outCols = ColIndexFactory.create(d.getNumberOfColumns(_dict.getNumberOfValues(1)));
206+
return copyAndSet(outCols, d);
207+
}
215208
}
216209

217210
@Override

0 commit comments

Comments
 (0)