Skip to content

fix: preserve cached formula error values when reading XLS - #1093

Open
skytin1004 wants to merge 2 commits into
apache:mainfrom
skytin1004:fix/xls-cached-formula-errors
Open

fix: preserve cached formula error values when reading XLS#1093
skytin1004 wants to merge 2 commits into
apache:mainfrom
skytin1004:fix/xls-cached-formula-errors

Conversation

@skytin1004

Copy link
Copy Markdown
Contributor

Purpose of the pull request

Preserve cached error values when reading XLS formulas. For example, a cached 1/0 result currently reads as #VALUE! instead of #DIV/0!.

Follow-up to the discussion in apache/fesod#1068.

What's changed?

  • Decode the cached formula error with POI's existing ErrorEval.getText(), as the literal-error handler already does.
  • Add regression tests for seven error values in XLS and XLSX across all three read modes, including formula metadata checks.

Validation: the full fesod-sheet suite passed (922 tests, including six new regression cases). Spotless passed for both changed Java files.

Checklist

  • I have read the Contributor Guide.
  • I have written the necessary doc or comment.
  • I have added the necessary unit tests and all cases have passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant