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

    https://github.com/apache/spark/pull/6792#discussion_r32374101
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashOuterJoin.scala
 ---
    @@ -68,26 +68,29 @@ case class HashOuterJoin(
         }
       }
     
    -  @transient private[this] lazy val DUMMY_LIST = Seq[Row](null)
    -  @transient private[this] lazy val EMPTY_LIST = Seq.empty[Row]
    +  @transient private[this] lazy val DUMMY_LIST = Seq[InternalRow](null)
    +  @transient private[this] lazy val EMPTY_LIST = Seq.empty[InternalRow]
     
       @transient private[this] lazy val leftNullRow = new 
GenericRow(left.output.length)
       @transient private[this] lazy val rightNullRow = new 
GenericRow(right.output.length)
       @transient private[this] lazy val boundCondition =
    -    condition.map(newPredicate(_, left.output ++ 
right.output)).getOrElse((row: Row) => true)
    +    condition.map(
    +      newPredicate(_, left.output ++ right.output)).getOrElse((row: 
InternalRow) => true)
     
       // TODO we need to rewrite all of the iterators with our own 
implementation instead of the Scala
       // iterator for performance purpose.
     
       private[this] def leftOuterIterator(
    -      key: Row, joinedRow: JoinedRow, rightIter: Iterable[Row]): 
Iterator[Row] = {
    -    val ret: Iterable[Row] = {
    +      key: InternalRow,
    +      joinedRow: JoinedRow,
    +      rightIter: Iterable[InternalRow]): Iterator[InternalRow] = {
    +    val ret: Iterable[InternalRow] = {
           if (!key.anyNull) {
             val temp = rightIter.collect {
               case r if boundCondition(joinedRow.withRight(r)) => 
joinedRow.copy()
             }
             if (temp.size == 0) {
    -          joinedRow.withRight(rightNullRow).copy :: Nil
    +          joinedRow.withRight(rightNullRow).copy.asInstanceOf[InternalRow] 
:: Nil
    --- End diff --
    
    not needed, will remove it.


---
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