aokolnychyi commented on code in PR #8660: URL: https://github.com/apache/iceberg/pull/8660#discussion_r1338968928
########## spark/v3.5/spark/src/main/java/org/apache/iceberg/spark/SparkConfParser.java: ########## @@ -106,7 +106,7 @@ public int parse() { } public Integer parseOptional() { - return parse(Integer::parseInt, null); + return parse(Integer::parseInt, defaultValue); Review Comment: Well, `parseOptional` does produce `Integer` so if we have a default value that is null, it may still apply. ``` public static final String PARQUET_COMPRESSION_LEVEL_DEFAULT = null; ``` We can hit such cases for ints as well, I assume. -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org