Repository navigation
Name MaxSynthesizedCells in the limit exception and document the limit - #1076
Open
vtxe02023274 wants to merge 1 commit into
Open
vtxe02023274 wants to merge 1 commit into
vtxe02023274 wants to merge 1 commit into
Conversation
Contributor
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1075
The limit added in #1016 throws an exception that does not say which setting controls it, and it is not mentioned in the upgrade notes or the README.
OpenXmlConfiguration.MaxSynthesizedCellsand says thatnulldisables the limit.MaxSynthesizedCellsexplains how cells are counted: each empty row counts as the number of columns being read (the header columns, or every column up to the last sheet column orendColumnIndex), and the limit does not apply withIgnoreEmptyRows.V2-Upgrade-Notes.mdlists the new limit and its default.README.mdgets a section 14 under Query with theQueryRangecase from the issue and how to raise or disable the limit.The new test uses the worksheet from the issue (values in
A1andA150,QueryRangeup to column 1000): it checks that the default limit throws with the setting name in the message, thatMaxSynthesizedCells = nullreturns all 150 rows, and thatIgnoreEmptyRowsreturns the 2 rows without throwing. It fails on master because the message does not mention the setting.dotnet test tests/MiniExcel.OpenXml.Testspasses on net8.0, net10.0 and net11.0 (566 tests),tests/MiniExcel.Csv.Testspasses on net10.0. I did not have a net9.0 runtime.Summary by CodeRabbit
nullto disable it.