rdblue commented on a change in pull request #1892: URL: https://github.com/apache/iceberg/pull/1892#discussion_r538889406
########## File path: api/src/main/java/org/apache/iceberg/expressions/Literals.java ########## @@ -57,6 +58,7 @@ private Literals() { @SuppressWarnings("unchecked") static <T> Literal<T> from(T value) { Preconditions.checkNotNull(value, "Cannot create expression literal from null"); + Preconditions.checkArgument(!NaNUtil.isNaN(value), "Cannot expression literal from NaN"); Review comment: Looks like the verb is missing. It should be "Cannot create expression literal from NaN". ---------------------------------------------------------------- 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. 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