Skip to content
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

Chaining comparisons #88

Open
Rudi79 opened this issue Dec 10, 2019 · 2 comments
Open

Chaining comparisons #88

Rudi79 opened this issue Dec 10, 2019 · 2 comments

Comments

@Rudi79
Copy link

Rudi79 commented Dec 10, 2019

I don't know whether this is the intended behavior, but it puzzled me that LazyArrays breaks transitivity. See:

using LazyArrays
b = rand(10)
a = ApplyArray(vcat, b)
a .== a  # works
a .== a .== a  # does not work

This bit me while using CSV together with DataFrames.
For xref see:
JuliaData/CSV.jl#536
resp.
https://discourse.julialang.org/t/csv-dataframes-problems-with-threads/31318

@dlfivefifty
Copy link
Member

Please can you post the output? Makes it easier to tell what’s going on

@Rudi79
Copy link
Author

Rudi79 commented Dec 10, 2019

Sure. Thanks for the quick reply. Here is the output:

MethodError: no method matching LazyArrays.LazyArrayStyle()
Closest candidates are:
  LazyArrays.LazyArrayStyle(!Matched::Val{N}) where N at C:\Users\xxx\.julia\packages\LazyArrays\14GOk\src\lazybroadcasting.jl:2
in top-level scope at spielwiese.jl:452
in broadcasted at base\broadcast.jl:1237
in combine_styles at base\broadcast.jl:411
in combine_styles at base\broadcast.jl:410
in Base.Broadcast.BroadcastStyle at base\broadcast.jl:211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants