spring-batch-extensions icon indicating copy to clipboard operation
spring-batch-extensions copied to clipboard

Support customization of FormulaEvaluator in PoiSheet

Open sayapeg opened this issue 10 months ago • 0 comments

Our use case of reading Excel files requires that errors in resolving the external sheet references in formula evaluations be ignored. This requires calling the org.apache.poi.ss.usermodel.FormulaEvaluator.setIgnoreMissingWorkbooks(boolean). This isn't currently possible with the current PoiSheet implementation - PoiSheet is package-private so it can't be extended to override the getRow method, which allows us to customize the FormulaEvalutor instance used.

What is the feasibility of doing one of these things?

  • Opening up PoiSheet for extension
  • Have a settings class which can be passed by the user and later applied by the PoiSheet to the FormulaEvaluator. This might result in future asks for setting classes for other things.

If nothing above works, the other option is to duplicate PoiSheet with necessary changes and then override PoiItemReader.

sayapeg avatar Apr 23 '24 15:04 sayapeg