diff --git a/java/src/test/java/ai/rapids/cudf/TableTest.java b/java/src/test/java/ai/rapids/cudf/TableTest.java index bee8d1cbb88..d6cef8c1246 100644 --- a/java/src/test/java/ai/rapids/cudf/TableTest.java +++ b/java/src/test/java/ai/rapids/cudf/TableTest.java @@ -3739,12 +3739,16 @@ void testChunkedPackBasic() { } } } -/* + @Test void testChunkedPackTwoPasses() { // this test packes ~2MB worth of long into a 1MB bounce buffer // this is 3 iterations because of the validity buffer Long[] longs = new Long[256*1024]; + // Initialize elements at odd-numbered indices + for (int i = 1; i < longs.length; i += 2) { + longs[i] = (long)i; + } try (Table t1 = new Table.TestBuilder().column(longs).build(); DeviceMemoryBuffer bounceBuffer = DeviceMemoryBuffer.allocate(1L*1024*1024); ChunkedPack cp = t1.makeChunkedPack(1L*1024*1024); @@ -3757,7 +3761,7 @@ void testChunkedPackTwoPasses() { while (cp.hasNext()) { long copied = cp.next(bounceBuffer); target.copyFromDeviceBufferAsync( - offset, target, 0, copied, Cuda.DEFAULT_STREAM); + offset, bounceBuffer, 0, copied, Cuda.DEFAULT_STREAM); offset += copied; } @@ -3768,7 +3772,6 @@ void testChunkedPackTwoPasses() { } } } -*/ @Test void testContiguousSplitWithStrings() {