Github user sujithjay commented on a diff in the pull request:
https://github.com/apache/spark/pull/22168#discussion_r211579406
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/SortMergeJoinExec.scala
---
@@ -1099,7 +1111,7 @@ private class SortMergeFullOuterJoinScanner(
def advanceNext(): Boolean = {
// If we already buffered some matching rows, use them directly
- if (leftIndex <= leftMatches.size || rightIndex <= rightMatches.size) {
+ if (leftIndex <= leftMatches.length || rightIndex <=
rightMatches.length) {
--- End diff --
I changed the type of `leftMatches` & `rightMatches` from
`ArrayBuffer[InternalRow]` to `ExternalAppendOnlyUnsafeRowArray`.
`ExternalAppendOnlyUnsafeRowArray` exposes a `length` method, instead of `size`
method.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]