Skip to content

[FR] Implement hashing #77

@marius311

Description

@marius311

Hashing ComponentArrays (v0.9.3) doesn't seem to be implemented and the generic fallback (tested on 1.6) doesn't work. An unfortunately side-effect of this is that ComponentArrays don't work with certain remote constructs (here because auto global-shipping relies on the hash):

julia> using ComponentArrays, Distributed

julia> addprocs(1);

julia> x = ComponentArray(a=[1,2], b=[3]);

julia> @fetch x
ERROR: MethodError: no method matching LinearIndices(::Tuple{Symbol, Symbol})
Closest candidates are:
  LinearIndices(::Tuple{}) at indices.jl:454
  LinearIndices(::R) where {N, R<:Tuple{Vararg{AbstractUnitRange{Int64}, N}}} at indices.jl:451
  LinearIndices(::Tuple{Vararg{AbstractUnitRange{var"#s79"} where var"#s79"<:Integer, N}}) where N at indices.jl:455
  ...
Stacktrace:
  [1] hash(A::ComponentVector{Int64}, h::UInt64)
...

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