ajantha-bhat commented on code in PR #1508:
URL: https://github.com/apache/polaris/pull/1508#discussion_r2072766993


##########
quarkus/service/src/test/java/org/apache/polaris/service/quarkus/task/TaskTestUtils.java:
##########
@@ -161,4 +179,26 @@ public static StatisticsFile writeStatsFile(
           
puffinWriter.writtenBlobsMetadata().stream().map(GenericBlobMetadata::from).toList());
     }
   }
+
+  public static PartitionStatisticsFile writePartitionStatsFile(
+      long snapshotId, long snapshotSequenceNumber, String statsLocation, 
FileIO fileIO)
+      throws IOException {
+
+    try (PuffinWriter puffinWriter = 
Puffin.write(fileIO.newOutputFile(statsLocation)).build()) {

Review Comment:
   Partition stats is not exactly a puffin file. 
   
   It can be a file in table default format. Like parquet, avro or ORC. 
   Maybe we can write a dummy avro or parquet file. 
   
   more context from Iceberg repo: 
https://github.com/apache/iceberg/blob/696a72c0f88c3af1096e716b196f1609da34e50d/spark/v3.5/spark-extensions/src/test/java/org/apache/iceberg/spark/extensions/TestExpireSnapshotsProcedure.java#L500



-- 
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]

Reply via email to