File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ice/src/main/java/com/altinity/ice/cli/internal Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -427,7 +427,9 @@ private static List<DataFile> processFile(
427427 if (!inferResult .success ()) {
428428 if (options .noCopy || options .s3CopyObject ) {
429429 throw new BadRequestException (
430- String .format ("%s: %s" , inputFile .location (), inferResult .failureReason ()));
430+ String .format (
431+ "%s: %s. In no-copy mode, each file must contain data for only one partition value" ,
432+ inputFile .location (), inferResult .failureReason ()));
431433 }
432434 logger .warn (
433435 "{}: {}. Falling back to full scan (slow)" ,
Original file line number Diff line number Diff line change @@ -185,8 +185,7 @@ public static InferPartitionKeyResult inferPartitionKey(
185185 if (!minTransformed .equals (maxTransformed )) {
186186 failureReason =
187187 String .format (
188- "File contains multiple partition values for '%s' (min: %s, max: %s). "
189- + "In force-no-copy mode, each file must contain data for only one partition value" ,
188+ "File contains multiple partition values for '%s' (min: %s, max: %s)" ,
190189 sourceName , minTransformed , maxTransformed );
191190 break ;
192191 }
@@ -197,8 +196,7 @@ public static InferPartitionKeyResult inferPartitionKey(
197196 } else if (!valueTransformed .equals (minTransformed )) {
198197 failureReason =
199198 String .format (
200- "File contains multiple partition values for '%s' (e.g., %s and %s). "
201- + "In force-no-copy mode, each file must contain data for only one partition value" ,
199+ "File contains multiple partition values for '%s' (e.g., %s and %s)" ,
202200 sourceName , valueTransformed , minTransformed );
203201 break ;
204202 }
You can’t perform that action at this time.
0 commit comments