wgtmac commented on code in PR #1035: URL: https://github.com/apache/parquet-mr/pull/1035#discussion_r1128836441
########## parquet-column/src/main/java/org/apache/parquet/column/ParquetProperties.java: ########## @@ -477,15 +477,15 @@ public Builder withMaxBloomFilterBytes(int maxBloomFilterBytes) { * @return this builder for method chaining */ public Builder withBloomFilterNDV(String columnPath, long ndv) { - Preconditions.checkArgument(ndv > 0, "Invalid NDV for column \"%s\": %d", columnPath, ndv); + Preconditions.checkArgument(ndv > 0, "Invalid NDV for column \"%s\": %s", columnPath, ndv); this.bloomFilterNDVs.withValue(columnPath, ndv); // Setting an NDV for a column implies writing a bloom filter this.bloomFilterEnabled.withValue(columnPath, true); return this; } public Builder withBloomFilterFPP(String columnPath, double fpp) { - Preconditions.checkArgument(fpp > 0.0 && fpp < 1.0, "Invalid FPP for column \"%s\": %d", columnPath, fpp); + Preconditions.checkArgument(fpp > 0.0 && fpp < 1.0, "Invalid FPP for column \"%s\": %s", columnPath, fpp); Review Comment: Is `%f` better for `fpp`? ########## parquet-column/src/main/java/org/apache/parquet/column/ParquetProperties.java: ########## @@ -477,15 +477,15 @@ public Builder withMaxBloomFilterBytes(int maxBloomFilterBytes) { * @return this builder for method chaining */ public Builder withBloomFilterNDV(String columnPath, long ndv) { - Preconditions.checkArgument(ndv > 0, "Invalid NDV for column \"%s\": %d", columnPath, ndv); + Preconditions.checkArgument(ndv > 0, "Invalid NDV for column \"%s\": %s", columnPath, ndv); Review Comment: Why use `%s` for long? -- 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: dev-unsubscr...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org