Commit 3ba62bb
* Update test/build dependencies: FAKE 6.1.4, NUnit 3.13.3, FsUnit 4.2.0, FsCheck 2.16.6
- FAKE packages: 6.1.3 → 6.1.4 (patch)
- NUnit: 3.13.1 → 3.13.3 (patch)
- FsUnit: 4.0.4 → 4.2.0 (minor)
- FsCheck: 2.15.1 → 2.16.6 (minor)
Build: passes (0 errors)
Tests: all offline tests pass; network tests skip due to sandbox
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix #1439: InferRows now counts CSV rows not text lines for multiline quoted fields
The maxNumberOfRows text-truncation in parseTextAtDesignTime counted text
lines using reader.ReadLine(), which broke CSV files where a single data row
spans multiple text lines due to quoted fields (e.g. "multi-\nline",2).
Fix: pass None as maxNumberOfRows so the raw text is never pre-truncated.
Row-count limiting is already handled correctly by InferColumnTypes via
Seq.truncate inferRows - this has always been the authoritative row limit.
The performance cost is reading the full sample file as a string; this is
the same cost as all other providers (XmlProvider, JsonProvider) which also
pass None here.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Repo Assist <repo-assist@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Don Syme <dsyme@users.noreply.github.com>
Co-authored-by: Don Syme <dsyme@github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e32127a commit 3ba62bb
3 files changed
Lines changed: 25 additions & 4 deletions
File tree
- src/FSharp.Data.DesignTime/Csv
- tests/FSharp.Data.Tests
- Data
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
206 | | - | |
207 | 205 | | |
208 | | - | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
219 | | - | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments