Skip to content

Commit

Permalink
OOPSIE !
Browse files Browse the repository at this point in the history
  • Loading branch information
psainics committed Mar 4, 2024
1 parent fef09cf commit 6bca7bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ public void initialize(InputSplit genericSplit, TaskAttemptContext context) thro
final FileMagic fm = FileMagic.valueOf(is);
switch (fm) {
case OOXML:
workbook = StreamingReader.builder().rowCacheSize(10).open(fileIn);
workbook = StreamingReader.builder().rowCacheSize(10).open(is);
isStreaming = true;
break;
case OLE2:
workbook = WorkbookFactory.create(fileIn);
workbook = WorkbookFactory.create(is);
break;
default:
throw new IOException("Can't open workbook - unsupported file type: " + fm);
Expand Down

0 comments on commit 6bca7bf

Please sign in to comment.