xiangfu0 commented on code in PR #19898:
URL: https://github.com/apache/pinot/pull/19898#discussion_r4309719613


##########
pinot-spi/src/main/java/org/apache/pinot/spi/ingestion/batch/spec/Constants.java:
##########
@@ -18,11 +18,23 @@
  */
 package org.apache.pinot.spi.ingestion.batch.spec;
 
+import java.util.Map;
+
 public class Constants {
   private Constants() {
   }
 
   /// By default Pinot segments are compressed in 'tar.gz' format then pushed 
to controller.
   public static final String TAR_GZ_FILE_EXT = ".tar.gz";
   public static final String METADATA_TAR_GZ_FILE_EXT = ".metadata.tar.gz";
+
+  /// Archive extensions understood by segment upload and metadata extraction, 
including existing LZ4 archives.
+  public static final Map<String, String> SEGMENT_TAR_FILE_EXTENSIONS =
+      Map.of("gzip", TAR_GZ_FILE_EXT, "lz4", ".tar.lz4", "zstd", ".tar.zst");

Review Comment:
   make all the strings constants



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

Reply via email to