Copilot commented on code in PR #6103:
URL: https://github.com/apache/paimon/pull/6103#discussion_r2292747886


##########
paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkWriteITCase.java:
##########
@@ -682,7 +682,7 @@ public void testChangelogFileSuffixName() throws Exception {
                         .filter(name -> name.contains("changelog-"))
                         .collect(Collectors.toList());
         String defaultExtension = "." + "parquet";
-        String newExtension = "." + "zstd" + "." + "parquet";
+        String newExtension = "." + "zst" + "." + "parquet";

Review Comment:
   The extension string concatenation is inconsistent with the comment that 
mentions ".zstd.parquet". The comment states "two data file end with 
.zstd.parquet" but the code uses "zst" which is the file extension for ZSTD 
compression, not the compression type name.
   ```suggestion
           String newExtension = "." + "zstd" + "." + "parquet";
   ```



##########
paimon-spark/paimon-spark-ut/src/test/java/org/apache/paimon/spark/SparkWriteITCase.java:
##########
@@ -638,7 +638,7 @@ public void testDataFileSuffixName() {
         Assertions.assertEquals(4, files.size());
 
         String defaultExtension = "." + "parquet";
-        String newExtension = "." + "zstd" + "." + "parquet";
+        String newExtension = "." + "zst" + "." + "parquet";

Review Comment:
   The extension string concatenation is inconsistent with the comment that 
mentions ".zstd.parquet". The comment states "two data file end with 
.zstd.parquet" but the code uses "zst" which is the file extension for ZSTD 
compression, not the compression type name.
   ```suggestion
           String newExtension = "." + "zstd" + "." + "parquet";
   ```



-- 
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: issues-unsubscr...@paimon.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to