You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2022/04/06 08:40:08 UTC

[GitHub] [calcite] asolimando commented on a diff in pull request #2735: [CALCITE-5021] Double JOIN is created for NOT IN when IN-list that the values all non-nullable is converted to Values

asolimando commented on code in PR #2735:
URL: https://github.com/apache/calcite/pull/2735#discussion_r843668039


##########
core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java:
##########
@@ -294,6 +294,33 @@ public static boolean containsNullable(RelDataType type) {
     return false;
   }
 
+  /**
+   * Recreates a RelDataType with the type keep same as the param sourceRelDataType and
+   * nullability keep same as the param targetRelDataType.

Review Comment:
   What about rephrasing the comment as follows:
   ```suggestion
      * Creates a RelDataType having the same type of the sourceRelDataType,
      * and the same nullability as the targetRelDataType.
   ```



-- 
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: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org