Skip to content

Commit

Permalink
Fix Java column leak in testParquetWriteMap
Browse files Browse the repository at this point in the history
  • Loading branch information
jlowe committed Sep 22, 2021
1 parent ba2cbd9 commit bfa2a64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java/src/test/java/ai/rapids/cudf/TableTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6669,8 +6669,9 @@ void testParquetWriteMap() throws IOException {
HostColumnVector.StructType structType = new HostColumnVector.StructType(true,
Arrays.asList(new HostColumnVector.BasicType(true, DType.STRING),
new HostColumnVector.BasicType(true, DType.STRING)));
try (Table t0 = new Table(ColumnVector.fromLists(new HostColumnVector.ListType(true,
structType), list1, list2, list3))) {
try (ColumnVector listColumn = ColumnVector.fromLists(new HostColumnVector.ListType(true,
structType), list1, list2, list3);
Table t0 = new Table(listColumn)) {
try (TableWriter writer = Table.writeParquetChunked(options, f)) {
writer.write(t0);
}
Expand Down

0 comments on commit bfa2a64

Please sign in to comment.