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 4094df6 commit 453bd21Copy full SHA for 453bd21
sql/core/src/main/scala/org/apache/spark/sql/parquet/ParquetTableOperations.scala
@@ -330,7 +330,7 @@ private[parquet] class FilteringParquetRowInputFormat
330
val toFetch = new ArrayList[FileStatus]
331
footerCache.synchronized {
332
for (status <- statuses) {
333
- if (!footerCache.contains(status)) {
+ if (footerCache.contains(status)) {
334
footers.add(footerCache(status))
335
} else {
336
footers.add(null)
@@ -348,7 +348,7 @@ private[parquet] class FilteringParquetRowInputFormat
348
var i = 0
349
var j = 0
350
while (i < toFetch.size) {
351
- while (statuses(j) ne toFetch.get(i)) {
+ while (statuses.get(j) ne toFetch.get(i)) {
352
j += 1
353
}
354
footers(j) = fetched(i)
0 commit comments