You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2020/12/08 23:32:30 UTC

[GitHub] [iceberg] rdblue commented on a change in pull request #1892: API: move NaN validation from Expressions to Literals

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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org