We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e6f2a2 commit 1ad873eCopy full SHA for 1ad873e
sql/core/src/main/scala/org/apache/spark/sql/execution/joins.scala
@@ -92,11 +92,8 @@ case class HashJoin(
92
private[this] val joinKeys = streamSideKeyGenerator()
93
94
override final def hasNext: Boolean =
95
- if (currentMatchPosition != -1) {
96
- currentMatchPosition < currentHashMatches.size
97
- } else {
98
- fetchNext()
99
- }
+ (currentMatchPosition != -1 && currentMatchPosition < currentHashMatches.size) ||
+ (streamIter.hasNext && fetchNext())
100
101
override final def next() = {
102
val ret = joinRow(currentStreamedRow, currentHashMatches(currentMatchPosition))
0 commit comments