hililiwei commented on code in PR #4325:
URL: https://github.com/apache/iceberg/pull/4325#discussion_r1130986497


##########
data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:
##########
@@ -92,6 +138,29 @@ public static List<DataFile> listPartition(
       MetricsConfig metricsSpec,
       NameMapping mapping,
       int parallelism) {
+
+    return listPartition(
+        partitionPath,
+        partitionUri,
+        format,
+        spec,
+        conf,
+        metricsSpec,
+        mapping,
+        parallelism,
+        false /* skipOnErrorOrNot */);
+  }
+
+  public static List<DataFile> listPartition(

Review Comment:
   added.



##########
data/src/main/java/org/apache/iceberg/data/TableMigrationUtil.java:
##########
@@ -139,9 +213,16 @@ public static List<DataFile> listPartition(
                   buildDataFile(fileStatus.get(index), partitionKey, spec, 
metrics, "orc");
             });
       } else {
-        throw new UnsupportedOperationException("Unknown partition format: " + 
format);
+        if (skipOnError) {
+          LOG.warn("Skipping unknown partition format: {} - {}", format, 
partitionUri);
+        } else {
+          throw new UnsupportedOperationException(
+              String.format(
+                  "Unknown partition format: %s - %s, set skip_on_error=true 
to skip it.",

Review Comment:
   removed



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