Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12157#discussion_r59571111
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/literals.scala
 ---
    @@ -169,6 +169,11 @@ case class Literal protected (value: Any, dataType: 
DataType)
     
       override def toString: String = if (value != null) value.toString else 
"null"
     
    +  override def hashCode(): Int = {
    --- End diff --
    
    I think the test failure is due to this patch, and it's an NPE somewhere. 
It could be because a field you're using in a hashCode() is null, and it seems 
like can be the case here. Instead of using `.hashCode()`, use 
`Objects.hashCode` which handles null.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to