Skip to content

Commit

Permalink
Fix Java unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
westonpace committed Feb 11, 2025
1 parent 4e924c0 commit 9a2da8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion java/core/src/test/java/com/lancedb/lance/FilterTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

import java.io.IOException;
import java.nio.file.Path;
import java.util.Arrays;

import static org.junit.jupiter.api.Assertions.assertEquals;

Expand Down Expand Up @@ -102,7 +103,8 @@ void testFilters() throws Exception {
}

private void testFilter(String filter, int expectedCount) throws Exception {
try (LanceScanner scanner = dataset.newScan(new ScanOptions.Builder().filter(filter).build())) {
try (LanceScanner scanner = dataset
.newScan(new ScanOptions.Builder().columns(Arrays.asList()).withRowId(true).filter(filter).build())) {
assertEquals(expectedCount, scanner.countRows());
}
}
Expand Down

0 comments on commit 9a2da8c

Please sign in to comment.