Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I set up headerCount with 0, @ExcelUnknownCells does not parse correctly #294

Closed
baov opened this issue Sep 22, 2023 · 5 comments
Closed

Comments

@baov
Copy link

baov commented Sep 22, 2023

Hello,

When I set up headerCount with 0, @ExcelUnknownCells does not parse correctly

image

I guess that you need at least header to work fine.

Thanks for your help.

notes :

  • com.poiji.deserialize.UnknownCellsIdenticalHeadersTest#byIndex
  • src/test/resources/unknown-cells-identical-headers.xlsx
@github-actions
Copy link

Thank you for contributing to Poiji! Feel free to create a PR If you want to contribute directly :)

@baov baov changed the title @ExcelUnknownCells does not parse data when headerCount is setting up to zero When I set up headerCount with 0, @ExcelUnknownCells does not parse correctly Sep 22, 2023
@ozlerhakan
Copy link
Owner

Hi @baov ,

When headerCount is set to 0, the header is treated as a data row. Plus, the annotation requires a header.

@ozlerhakan
Copy link
Owner

ozlerhakan commented Sep 24, 2023

The upcoming patch release will offer support to use @ExcelUnknownCells with , for example , the headerCound=0 and skip=1 options if the header is in the first row i.e. at the index 0.

@ozlerhakan
Copy link
Owner

You can use v4.1.2 for the mentioned use case @baov !

@baov
Copy link
Author

baov commented Sep 28, 2023

Thank you @ozlerhakan

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

No branches or pull requests

2 participants