Code Monkey home page Code Monkey logo

Comments (7)

adienes avatar adienes commented on June 20, 2024 1

DKWinners_20230603.csv

sure, here is an example of such a CSV. these are results from sports betting contests. let me know if it helps!

from csv.jl.

quinnj avatar quinnj commented on June 20, 2024

cc: @Liozou

from csv.jl.

Liozou avatar Liozou commented on June 20, 2024

Thank you for reporting this! Would it be possible for you to share the offending CSV?

I put this as an error precisely to get this kind CSVs reported here. There should indeed be no apparent issue/crash since a fallback was implemented, but it signals a possible mistake in the code and in any case it causes a severe performance drop for CSV parsing (since it falls back to a single thread).
I guess it should be displayed as a warning instead of an error when we can internally check that the cause of this is well-known (i.e. newlines inside quoted fields) and there is nothing more to be done than let the user know of the expected performance loss.

from csv.jl.

Liozou avatar Liozou commented on June 20, 2024

The root issue is that starting from line 30 (Gummypecs (2/3)), each line only contains 10 columns instead of 12, i.e. there should be two more commas at the end of each line. But the @error message is quite misleading here I agree, I'll try to fix that.

from csv.jl.

adienes avatar adienes commented on June 20, 2024

cool! thank you for the quick responses

from csv.jl.

adienes avatar adienes commented on June 20, 2024

btw this is not fixed for me :)

maybe it is because I set silencewarnings = true, so it is never true that numwarnings[] > 0 ?

from csv.jl.

Liozou avatar Liozou commented on June 20, 2024

I think this is just because the latest released version of CSV.jl does not include the bugfix. You can try to ]dev CSV just to check that the bug is indeed fixed. @quinnj would you mind tagging a new patch version?
Otherwise, in the code, both versions of the warnings are under the condition that !ctx.silencewarnings so nothing should appear, unless I'm missing something...

from csv.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.