Issue with NeoCSVReader
Hi! I have a simple use of NeoCSVReader, but I get a rollback. -=-=-=-=-=-=-=-=-= content := (ZnEasy get: 'https://github.com/sudar/pig-samples/raw/master/data/tweets.csv') contents readStream. lines := (NeoCSVReader on: content) skipHeader; upToEnd. -=-=-=-=-=-=-=-=-= The url points to a .csv file with a header. No idea why the code . I loaded the csv reader using: Gofer new smalltalkhubUser: 'SvenVanCaekenberghe' project: 'Neo'; package: 'ConfigurationOfNeoCSV'; load. (Smalltalk at: #ConfigurationOfNeoCSV) loadBleedingEdge. Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi Alexandre, I do not have access to a pharo image right now. But I had a look into your csv file. There are rows that do not include any or to few data. I think NeoCSVReader can not handle that and expects a "proper" file I will check tonight, in case nobody else comes up with additional information by then. To be continued Sebastian Am 28.06.2016 um 14:41 schrieb Alexandre Bergel:
Hi!
I have a simple use of NeoCSVReader, but I get a rollback.
-=-=-=-=-=-=-=-=-= content := (ZnEasy get: 'https://github.com/sudar/pig-samples/raw/master/data/tweets.csv') contents readStream. lines := (NeoCSVReader on: content) skipHeader; upToEnd. -=-=-=-=-=-=-=-=-=
The url points to a .csv file with a header. No idea why the code .
I loaded the csv reader using: Gofer new smalltalkhubUser: 'SvenVanCaekenberghe' project: 'Neo'; package: 'ConfigurationOfNeoCSV'; load. (Smalltalk at: #ConfigurationOfNeoCSV) loadBleedingEdge.
Alexandre
participants (2)
-
Alexandre Bergel -
Sebastian Heidbrink