Skip to content

Commit

Permalink
rfctr(csv): accommodate single column CSV files (#3483)
Browse files Browse the repository at this point in the history
**Summary**
Improve factoring, type-annotation, and tests for `partition_csv()` and
accommodate single-column CSV files.

Fixes: #2616
  • Loading branch information
scanny authored Aug 6, 2024
1 parent 59ec642 commit a468b2d
Show file tree
Hide file tree
Showing 18 changed files with 450 additions and 128 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## 0.15.2-dev0
## 0.15.2-dev1

### Enhancements

### Features


### Fixes

* **Renames Astra to Astra DB** Conforms with DataStax internal naming conventions.
* **Accommodate single-column CSV files.** Resolves a limitation of `partition_csv()` where delimiter detection would fail on a single-column CSV file (which naturally has no delimeters).

## 0.15.1

Expand Down
5 changes: 5 additions & 0 deletions example-docs/semicolon-delimited.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Lorem, ipsum; dolor sit; amet
consectetur; adipiscing; elit
sed, do; eiusmod; tempor incididunt
ut labore; et, dolore; magna aliqua
Ut enim; ad minim; veniam, quis
9 changes: 9 additions & 0 deletions example-docs/single-column.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Lorem, ipsum
dolor sit
amet consectetur
adipiscing, elit
sed, do eiusmod
tempor incididunt
ut labore et
dolore; magna aliqua
Ut enim, ad minim, veniam
2 changes: 1 addition & 1 deletion example-docs/stanley-cups.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ Stanley Cups,,
Team,Location,Stanley Cups
Blues,STL,1
Flyers,PHI,2
Maple Leafs,TOR,13
Maple Leafs,TOR,13
Loading

0 comments on commit a468b2d

Please sign in to comment.