vvysotskyi commented on a change in pull request #2069: URL: https://github.com/apache/drill/pull/2069#discussion_r429674200
########## File path: contrib/format-excel/src/main/java/org/apache/drill/exec/store/excel/ExcelBatchReader.java ########## @@ -75,7 +83,9 @@ private Row currentRow; - private Workbook workbook; + private StreamingWorkbook swb; Review comment: This class uses only methods from the `Workbook` interface, so I don't see any reason for narrowing down the type to `StreamingWorkbook` here and adding explicit casts for this type. ########## File path: contrib/format-excel/src/main/java/org/apache/drill/exec/store/excel/ExcelBatchReader.java ########## @@ -75,7 +83,9 @@ private Row currentRow; - private Workbook workbook; + private StreamingWorkbook swb; + + private CoreProperties fileMetadata; Review comment: It is called in a single method only. May be declared a local variable in this method instead of adding the class field. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org