Skip to content

Commit

Permalink
always add current file in case it's not splittable and > maxSplitBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Takahashi committed Jan 24, 2018
1 parent af6bba6 commit ef04de9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,8 @@ case class FileSourceScanExec(
var backIndex = splitFiles.length - 1

while (frontIndex <= backIndex) {
addFile(splitFiles(frontIndex))
frontIndex += 1
while (frontIndex <= backIndex && currentSize + splitFiles(frontIndex).length <= maxSplitBytes) {
addFile(splitFiles(frontIndex))
frontIndex += 1
Expand Down

0 comments on commit ef04de9

Please sign in to comment.