-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Importing this CSV from a URL only gets 13 rows, not 596 #23
Comments
Still a bug against latest Datasette Desktop release. |
This is a |
I'm suspicious of this code: datasette-app-support/datasette_app_support/utils.py Lines 69 to 71 in d130884
Maybe that |
This code is also relevant: datasette-app-support/datasette_app_support/utils.py Lines 17 to 49 in d130884
|
Here are my notes from when I wrote that |
Maybe |
https://github.com/MKuranowski/aiocsv may be able to handle this for me. |
|
I'm beginning to think it would be better for the app to either suck the entire CSV file into memory OR to save it to a temporary file on disk, then read it into a table. Much simpler that way - this problem with newlines has made me very suspicious of importers that don't directly use |
I'm going to go with the memory option. Datasette Desktop runs on Macs with a decent amount of RAM, and with swap. |
https://raw.githubusercontent.com/okfn/dataportals.org/master/data/portals.csv
The "Open CSV from URL..." menu option only produced 13 rows - but using
sqlite-utils insert portals.db portals portals.csv --csv
on the command-line got all 596.The text was updated successfully, but these errors were encountered: