-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow specifying alt delimiter when reading csv (#2365)
``` > select * from read_csv('./testdata/csv/delimiter.csv', delimiter => ';'); ┌───────┬──────────────┬─────────┐ │ col1 │ col2 │ col3 │ │ ── │ ── │ ── │ │ Int64 │ Utf8 │ Float64 │ ╞═══════╪══════════════╪═════════╡ │ 1 │ hello, world │ 3.90000 │ │ 2 │ HELLO, WORLD │ 4.90000 │ └───────┴──────────────┴─────────┘ ``` Depends on #2364 Adds the plumbing for getting options from the user in our various scan functions. The only one wired up right now is 'delimiter' for csv, but other options should be very straightforward to add in now.
- Loading branch information
Showing
4 changed files
with
127 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
col1;col2;col3 | ||
1;hello, world;3.9 | ||
2;HELLO, WORLD;4.9 |
This file contains 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