leventov commented on a change in pull request #5958: Part 2 of changes for SQL 
Compatible Null Handling
URL: https://github.com/apache/incubator-druid/pull/5958#discussion_r202522880
 
 

 ##########
 File path: sql/src/main/java/io/druid/sql/calcite/rel/DruidSemiJoin.java
 ##########
 @@ -308,16 +313,18 @@ public RelOptCost computeSelfCost(final RelOptPlanner 
planner, final RelMetadata
 
               for (int i = 0; i < values.size(); i++) {
                 final String value = values.get(i);
-                subConditions.add(
-                    getCluster().getRexBuilder().makeCall(
-                        SqlStdOperatorTable.EQUALS,
-                        leftExpressions.get(i),
-                        getCluster().getRexBuilder().makeLiteral(value)
-                    )
-                );
+                // NULLS are not supposed to match NULLs in a join. So ignore 
them.
 
 Review comment:
   NULL*s*

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to