-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow non-comma separator for CSV input #4238
Comments
I've verified with Zed commit 4aa010c that this now working in the CLI tooling. As test data I'm using the "Excel CSV" links at the Italian fuel prices site.
If we attempt to read this data with the CSV reader defaults, it fails.
However if we make use of the new option, it works.
There's some follow-on work that would make this more broadly usable.
|
The csv.delim query parameter to the load API (POST /pool/{pool}/branch/{branch}) specifies the field delimiter for CSV input, allowing use of a character other than ",". For #4238.
The csv.delim query parameter to the load API (POST /pool/{pool}/branch/{branch}) specifies the field delimiter for CSV input, allowing use of a character other than ",". For #4238.
I've verified with Zed commit 3ca4b8a and the same test data as the previous comment that this is now working over the Zed API as well. Note that with this particular example of a semicolon I had to URL escape it.
For the other loose ends cited above, these issues remain open: |
At the time this issue is being filed, Zed is at commit 78d587d.
A community zync user inquired about this functionality:
It looks like the Go CSV library Zed currently uses has options that would allow the selection of alternate separators, but Zed/Zui don't yet offer ways to invoke such options.
I also asked the user the context in which they primarily imagined using the functionality, since I expect deciding how it's invoked may be more work than leveraging the option. The response:
The text was updated successfully, but these errors were encountered: