Skip to content

Commit

Permalink
Fix checkArgument message in OrcWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
polaris6 authored and findepi committed May 27, 2022
1 parent bb0d814 commit 0bff849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trino-orc/src/main/java/io/trino/orc/OrcWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public OrcWriter(
recordValidation(validation -> validation.setTimeZone(ZoneId.of("UTC")));

requireNonNull(options, "options is null");
checkArgument(options.getStripeMaxSize().compareTo(options.getStripeMinSize()) >= 0, "stripeMaxSize must be greater than stripeMinSize");
checkArgument(options.getStripeMaxSize().compareTo(options.getStripeMinSize()) >= 0, "stripeMaxSize must be greater than or equal to stripeMinSize");
int stripeMinBytes = toIntExact(requireNonNull(options.getStripeMinSize(), "stripeMinSize is null").toBytes());
this.stripeMaxBytes = toIntExact(requireNonNull(options.getStripeMaxSize(), "stripeMaxSize is null").toBytes());
this.chunkMaxLogicalBytes = Math.max(1, stripeMaxBytes / 2);
Expand Down

0 comments on commit 0bff849

Please sign in to comment.