# Parsing of file fails in CSV.jl in Julia 1.6 but not 1.5

**URL:** <https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710>\
**Category:** General Usage\
**Tags:** csv\
**Created:** [November 6, 2020, 10:20pm UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710 "2020-11-06T22:20:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [November 6, 2020, 10:20pm UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710/1 "2020-11-06T22:20:07Z")

</div>

Not sure where to put this, whether this is too early to submit and what this actually is but the following CSV file

```julia
ObjectId,IdBundesland,Bundesland,Landkreis,Altersgruppe,Geschlecht,AnzahlFall,AnzahlTodesfall,Meldedatum,IdLandkreis,Datenstand,NeuerFall,NeuerTodesfall,Refdatum,NeuGenesen,AnzahlGenesen,IstErkrankungsbeginn,Altersgruppe2
43309019,1,Schleswig-Holstein,SK Flensburg,A00-A04,M,1,0,2020/09/30 00:00:00,01001,"12.10.2020, 00:00 Uhr",0,-9,2020/09/30 00:00:00,-9,0,0,Nicht übermittelt

```

is parsed perfectly well with 1.5+

```julia-repl
christian@pop-os:~/Downloads/julia-5d68779316/bin$ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.5.2 (2020-09-23)
 _/ |\ __'_|_|_|\__'_| |  
|__/ |

julia> import CSV; CSV.File("/home/christian/Dropbox/computer_sync_hardlink/covid/zweiter_anlauf/test.csv")

1-element CSV.File{false}:
 CSV.Row: (ObjectId = 43309019, IdBundesland = 1, Bundesland = "Schleswig-Holstein", Landkreis = "SK Flensburg", Altersgruppe = "A00-A04", Geschlecht = "M", AnzahlFall = 1, AnzahlTodesfall = 0, Meldedatum = "2020/09/30 00:00:00", IdLandkreis = 1001, Datenstand = "12.10.2020, 00:00 Uhr", NeuerFall = 0, NeuerTodesfall = -9, Refdatum = "2020/09/30 00:00:00", NeuGenesen = -9, AnzahlGenesen = 0, IstErkrankungsbeginn = 0, Altersgruppe2 = "Nicht übermittelt")

```

but fails with a pre build nightly binary from the julialang website

```julia-repl
christian@pop-os:~/Downloads/julia-5d68779316/bin$ ./julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.6.0-DEV.1441 (2020-11-06)
 _/ |\ __'_|_|_|\__'_| | Commit 5d68779316 (0 days old master)
|__/ |

julia> import CSV; CSV.File("/home/christian/Dropbox/computer_sync_hardlink/covid/zweiter_anlauf/test.csv")
ERROR: MethodError: no method matching typesubtract(::Type{Union{}}, ::Type{Int64})
Closest candidates are:
  typesubtract(::Any, ::Any, ::Int64) at compiler/typeutils.jl:66
Stacktrace:
 [1] ts(T::Type, S::Type)
   @ CSV ~/.julia/packages/CSV/MKemC/src/utils.jl:214
 [2] nonstandardtype(T::Type)
   @ CSV ~/.julia/packages/CSV/MKemC/src/utils.jl:217
 [3] (::CSV.var"#17#23")(T::Type)
   @ CSV ./none:0
 [4] iterate(::Base.Iterators.Filter{CSV.var"#17#23", Vector{Type}})
   @ Base.Iterators ./iterators.jl:451
 [5] iterate
   @ ./generator.jl:44 [inlined]
 [6] Header
   @ ~/.julia/packages/CSV/MKemC/src/header.jl:232 [inlined]
 [7] CSV.File(source::String; header::Int64, normalizenames::Bool, datarow::Int64, skipto::Nothing, footerskip::Int64, transpose::Bool, comment::Nothing, use_mmap::Nothing, ignoreemptylines::Bool, select::Nothing, drop::Nothing, missingstrings::Vector{String}, missingstring::String, delim::Nothing, ignorerepeated::Bool, quotechar::Char, openquotechar::Nothing, closequotechar::Nothing, escapechar::Char, dateformat::Nothing, dateformats::Nothing, decimal::UInt8, truestrings::Vector{String}, falsestrings::Vector{String}, type::Nothing, types::Nothing, typemap::Dict{Type, Type}, categorical::Nothing, pool::Float64, lazystrings::Bool, strict::Bool, silencewarnings::Bool, debug::Bool, parsingdebug::Bool, kw::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ CSV ~/.julia/packages/CSV/MKemC/src/file.jl:216
 [8] CSV.File(source::String)
   @ CSV ~/.julia/packages/CSV/MKemC/src/file.jl:216
 [9] top-level scope
   @ REPL[1]:1

```

is something changing in julia 1.6 that I missed?

---

<div class="post-metadata">

**Author:** ![oxinabox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oxinabox/32/206603_2.png) [@oxinabox](https://discourse.julialang.org/u/oxinabox)\
**Post date:** [November 6, 2020, 10:52pm UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710/2 "2020-11-06T22:52:35Z")

</div>

Install CSV#master.

---

<div class="post-metadata">

**Author:** ![OvidiusCicero](https://avatars.discourse-cdn.com/v4/letter/o/73ab20/32.png) [@OvidiusCicero](https://discourse.julialang.org/u/OvidiusCicero)\
**Post date:** [November 6, 2020, 11:03pm UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710/3 "2020-11-06T23:03:01Z")

</div>

works… is it possible to explain what’s the problem in a few words  
or link the github issue?

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 7, 2020, 7:35am UTC](https://discourse.julialang.org/t/parsing-of-file-fails-in-csv-jl-in-julia-1-6-but-not-1-5/49710/4 "2020-11-07T07:35:58Z")

</div>

[https://github.com/JuliaData/CSV.jl/pull/745](https://github.com/JuliaData/CSV.jl/pull/745)
