Skip to content

Commit f989572

Browse files
committed
Fixed one set of tests
1 parent 641f28f commit f989572

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/columnar/InMemoryTableScanExec.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,10 @@ case class InMemoryTableScanExec(
113113
}
114114
val ret = serializer.decompressToRows(withMetrics, relOutput, attributes, conf)
115115
if (enableAccumulatorsForTest) {
116-
@transient var seen = false
117116
def incParts(index: Int, iter: Iterator[InternalRow]): Iterator[InternalRow] = {
118-
if (!seen) {
117+
if (iter.hasNext) {
119118
readPartitions.add(1)
120119
}
121-
seen = true
122120
iter
123121
}
124122
ret.mapPartitionsWithIndexInternal(incParts)

0 commit comments

Comments
 (0)