zinking opened a new issue, #8743:
URL: https://github.com/apache/iceberg/issues/8743
### Apache Iceberg version
1.4.0 (latest release)
### Query engine
Spark
### Please describe the bug 🐞
org.apache.iceberg.spark.actions.TestRewriteDataFilesAction#testBinPackWithDeleteAllData
```
public void testBinPackWithDeleteAllData() {
Map<String, String> options = Maps.newHashMap();
options.put(TableProperties.FORMAT_VERSION, "2");
Table table = createTablePartitioned(1, 1, 1, options);
shouldHaveFiles(table, 1);
table.refresh();
List<DataFile> dataFiles = TestHelpers.dataFiles(table);
int total = (int)
dataFiles.stream().mapToLong(ContentFile::recordCount).sum();
RowDelta rowDelta = table.newRowDelta();
// remove all data
writePosDeletesToFile(table, dataFiles.get(0),
total).forEach(rowDelta::addDeletes);
rowDelta.commit();
table.refresh();
List<Object[]> expectedRecords = currentData();
long dataSizeBefore = testDataSize(table);
Result result =
actions()
.rewriteDataFiles(table)
.option(BinPackStrategy.DELETE_FILE_THRESHOLD, "1")
.execute();
```
I am expecting after the rewrite, all position delete files should have
gone, but here it remains.
I did some debug (roughly), the manifest that these position delete files
resides have a sequence number that is equal to the min data sequence number.
so they remained
is this a bug or is it just working as expected.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]