Skip to content

Commit b15e895

Browse files
committed
Fix check on test
1 parent 295184b commit b15e895

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/test/scala/org/apache/spark/sql/delta/stats/DataSkippingDeltaTests.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,8 @@ trait DataSkippingDeltaTestsBase extends QueryTest
15241524
sql(s"SELECT nested.b FROM delta.`$dir` WHERE nested.b < 2").collect()
15251525
}
15261526
val rddScans = plans.flatMap(_.collect {
1527-
case l: LogicalRDD => l
1527+
// Only look for the RDD containg the path, ignore the initial cached RDD for all AddFile's
1528+
case l: LogicalRDD if l.output.exists(_.name == "path") => l
15281529
})
15291530
// We should only scan the log once
15301531
assert(rddScans.length == 1)

0 commit comments

Comments
 (0)