Skip to content

Commit 8f4c716

Browse files
committed
combine uncompressed
1 parent 3203299 commit 8f4c716

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/org/apache/sysds/runtime/compress/lib/CLALibCombineGroups.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,12 @@ public static AColGroup combine(AColGroup a, AColGroup b, int nRow) {
214214
IColIndex combinedColumns = ColIndexFactory.combine(a, b);
215215

216216
// try to recompress a and b if uncompressed
217-
if(a instanceof ColGroupUncompressed)
217+
if( (a instanceof ColGroupUncompressed) && (b instanceof ColGroupUncompressed)){
218+
// do not try to compress if both are uncompressed
219+
}
220+
else if(a instanceof ColGroupUncompressed)
218221
a = a.recompress();
219-
220-
if(b instanceof ColGroupUncompressed)
222+
else if(b instanceof ColGroupUncompressed)
221223
b = b.recompress();
222224

223225
long maxEst = (long) a.getNumValues() * b.getNumValues();

0 commit comments

Comments
 (0)