Repository navigation
xlsx reader: keeping sheet tables bounded by their content #12024
nachogarcia
started this conversation in
Development
Replies: 2 comments 2 replies
|
I really don't know. It would be good if people who use pandoc with xslx chime in here. Does this problem arise in real-world cases? |
2 replies
|
I've gone ahead and wrote a couple PRs based on this. I tried to keep them small, sorry if it resulted in a high number. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The xlsx reader turns each sheet into one table covering every row and column between the sheet's outermost cells. The table's size therefore isn't bounded by what the file contains:
XFD1048576, the last cell of a sheet, asks for 16384 × 1048576 cells and doesn't finish.I opened #12020 to keep only the rows and columns that hold a non-blank cell. That fixes the stray-cell case but not the general one. The table is then (rows with content) × (columns with content), which can still be quadratic in the content. A 235 kB workbook with one full row (16384 values) and 20000 values down column A still needs about 330 million cells, and didn't finish in 60 s. So I closed #12020 and #12015. Since anyone can hand pandoc an .xlsx file, I'd like to agree on the approach before a new PR.
Options I can see:
A1: valueentries. Output then grows with the content in every case, but those sheets look different from the others.Which would you prefer? My inclination is 1 + 3, so that output always grows with the content. Or 1 + 2, if you'd rather every sheet stay a table.
All reactions