leaves12138 commented on code in PR #4608:
URL: https://github.com/apache/paimon/pull/4608#discussion_r1866941728
##########
paimon-core/src/test/java/org/apache/paimon/table/PrimaryKeyFileStoreTableTest.java:
##########
@@ -810,6 +810,65 @@ public void testDeletionVectorsWithFileIndexInFile()
throws Exception {
"1|4|500|binary|varbinary|mapKey:mapVal|multiset"));
}
+ @Test
+ public void testDeletionVectorsWithParquetFilter() throws Exception {
+ FileStoreTable table =
+ createFileStoreTable(
+ conf -> {
+ conf.set(BUCKET, 1);
+ conf.set(DELETION_VECTORS_ENABLED, true);
+ conf.set(FILE_FORMAT, "parquet");
+ conf.set("parquet.block.size", "1048576");
+ conf.set("parquet.page.size", "1024");
+ });
+
+ BatchWriteBuilder writeBuilder = table.newBatchWriteBuilder();
+
+ BatchTableWrite write =
+ (BatchTableWrite)
+ writeBuilder
+ .newWrite()
+ .withIOManager(new
IOManagerImpl(tempDir.toString()));
+
+ for (int i = 0; i < 2000; i++) {
+ write.write(rowData(i, i, i * 100L));
Review Comment:
If you want test datas in one bucket in deletion vector, just rowData(0, i,
i*100L), the first column is "pt" for partition .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]