Skip to content

Commit

Permalink
Fix Java column leak in testParquetWriteMap (#9271)
Browse files Browse the repository at this point in the history
Fixes a Java column vector leak in TableTest#testParquetWriteMap.

Authors:
  - Jason Lowe (https://github.com/jlowe)

Approvers:
  - Robert (Bobby) Evans (https://github.com/revans2)

URL: #9271
  • Loading branch information
jlowe authored Sep 22, 2021
1 parent 20713df commit b0c8bbb
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 b0c8bbb

Please sign in to comment.