JuliaData / IndexedTables.jl

Flexible tables with ordered indices
https://juliadb.org
MIT License
121 stars 37 forks source link

named columns broken in v0.6-alpha #34

Closed JeffreySarnoff closed 7 years ago

JeffreySarnoff commented 7 years ago

from the docs

 hitemps = NDSparse(Columns(city = [fill("New York",3); fill("Boston",3)],
                       date = repmat(Date(2016,7,6):Date(2016,7,8), 2)),
                      [91,89,91,95,83,76])

ERROR: invalid subtyping in definition of _NT_city_date Stacktrace: [1] #Columns#14(::Array{Symbol,1}, ::Type{T} where T, ::Array{String,1}, ::Vararg{AbstractArray{T,1} where T,N} where N) at /home/jas/.julia/v0.6/IndexedTables/src/columns.jl:26 [2] (::Core.#kw#Type)(::Array{Any,1}, ::Type{IndexedTables.Columns}, ::Array{String,1}, ::Array{Date,1}) at ./:0 [3] #Columns#15(::Array{Any,1}, ::Type{T} where T) at /home/jas/.julia/v0.6/IndexedTables/src/columns.jl:32 [4] (::Core.#kw#Type)(::Array{Any,1}, ::Type{IndexedTables.Columns}) at ./:0

JeffBezanson commented 7 years ago

I think this should work with a newer version of NamedTuples.

JeffreySarnoff commented 7 years ago

so it does