Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21470#discussion_r192274906
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashJoin.scala ---
    @@ -62,8 +62,9 @@ trait HashJoin {
       }
     
       protected lazy val (buildKeys, streamedKeys) = {
    -    require(leftKeys.map(_.dataType) == rightKeys.map(_.dataType),
    -      "Join keys from two sides should have same types")
    +    require(leftKeys.map(_.dataType).zip(rightKeys.map(_.dataType)).forall 
{
    +      case (l, r) => BinaryOperator.sameType(l, r)
    --- End diff --
    
    I hit a test failure before changing this. This kind of check(assert, 
require) can only be hitten when there is a bug.


---

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

Reply via email to