cloud-fan commented on a change in pull request #31632:
URL: https://github.com/apache/spark/pull/31632#discussion_r581681224
##########
File path:
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala
##########
@@ -769,7 +769,8 @@ private[client] class Shim_v0_13 extends Shim_v0_12 {
case InSet(child, values) if useAdvanced && values.size > inSetThreshold
=>
val dataType = child.dataType
- val sortedValues =
values.toSeq.sorted(TypeUtils.getInterpretedOrdering(dataType))
+ val sortedValues = values.filter(_ != null).toSeq
+ .sorted(TypeUtils.getInterpretedOrdering(dataType))
Review comment:
same question here. The null sematic of IN is pretty tricky.
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]