Skip to content

Commit bddbc7f

Browse files
committed
Address comments
1 parent be1abfa commit bddbc7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/FileStreamSourceLog.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ class FileStreamSourceLog(
7474
}
7575

7676
override def add(batchId: Long, logs: Array[FileEntry]): Boolean = {
77-
if (super.add(batchId, logs) && isCompactionBatch(batchId, compactInterval)) {
78-
fileEntryCache.put(batchId, logs)
79-
true
80-
} else if (!isCompactionBatch(batchId, compactInterval)) {
77+
if (super.add(batchId, logs)) {
78+
if (isCompactionBatch(batchId, compactInterval)) {
79+
fileEntryCache.put(batchId, logs)
80+
}
8181
true
8282
} else {
8383
false

0 commit comments

Comments
 (0)