Skip to content

Problems with threads and LazyArrays #536

Closed
@Rudi79

Description

@Rudi79

Thanks for your great work on this package.
I discovered an odd behaviour I wanted to share:

using CSV, DataFrames
dt = DataFrame(a = rand(10000))
dt.a .== dt.a .== dt.a # works
CSV.write("test.csv", dt)

df = CSV.File("test.csv", threaded=false) |> DataFrame!
df.a .== df.a .== df.a # works
dt==df # true

df2 = CSV.File("test.csv", threaded=true) |> DataFrame!
df2.a .== df2.a # works
df2.a .== df2.a .== df2.a # does not work
df2==df # true 

tested on Julia 1.3-rc4 and 5 with activated threading on Win10 and Linux.
The problem seems to be related to broadcasting and LazyArrays.
I already posted on discourse (https://discourse.julialang.org/t/csv-dataframes-problems-with-threads/31318)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions