Skip to content

Commit 9bf572f

Browse files
committed
sampled all
1 parent 987de09 commit 9bf572f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/sysds/runtime/frame/data/compress/CompressedFrameBlockFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ private Array<?> compressColFinally(int i, final Array<?> a, final ArrayCompress
208208
Timing time = LOG.isDebugEnabled() ? new Timing(true) : null;
209209
if(s.bestType != null && s.shouldCompress) {
210210
if(s.bestType == FrameArrayType.DDC)
211-
compressedColumns[i] = DDCArray.compressToDDC(a);
211+
compressedColumns[i] = DDCArray.compressToDDC(a, s.sampledAllRows ? s.nUnique : Integer.MAX_VALUE);
212212
else
213213
throw new RuntimeException("Unsupported frame compression encoding : " + s.bestType);
214214
}

0 commit comments

Comments
 (0)