aokolnychyi commented on code in PR #8262:
URL: https://github.com/apache/iceberg/pull/8262#discussion_r1287792799
##########
spark/v3.4/spark-extensions/src/jmh/java/org/apache/iceberg/spark/PlanningBenchmark.java:
##########
@@ -215,12 +231,21 @@ private DeleteFile loadAddedDeleteFile() {
}
private void initDataAndDeletes() throws NoSuchTableException {
+ Schema schema = table.schema();
+ PartitionSpec spec = table.spec();
+ LocationProvider locations = table.locationProvider();
+
for (int partitionOrdinal = 0; partitionOrdinal < NUM_PARTITIONS;
partitionOrdinal++) {
Dataset<Row> inputDF =
- randomDataDF(table.schema(), NUM_ROWS_PER_DATA_FILE)
+ randomDataDF(schema, NUM_ROWS_PER_DATA_FILE)
.drop(PARTITION_COLUMN)
- .withColumn(PARTITION_COLUMN, lit(partitionOrdinal));
- appendAsFile(inputDF);
+ .withColumn(PARTITION_COLUMN, lit(partitionOrdinal))
+ .drop(SORT_KEY_COLUMN)
+ .withColumn(SORT_KEY_COLUMN, lit(Integer.MIN_VALUE));
+
+ for (int fileOrdinal = 0; fileOrdinal <
NUM_REAL_DATA_FILES_PER_PARTITION; fileOrdinal++) {
Review Comment:
Generating more real files before issuing a delete to have a more realistic
delete file.
--
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]