Skip to content

Commit c72a072

Browse files
authored
Merge pull request #167 from piever/pv/structarrays
fix meta_table
2 parents ce718d9 + 9f1eefc commit c72a072

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/metadata.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ function meta_table(iter)
295295
return meta_table(first(cols), Base.tail(cols))
296296
end
297297

298-
function meta_table(main, meta::NamedTuple{names,types}) where {names,types}
299-
F = MetaT{eltype(main),names,StructArrays.eltypes(types)}
298+
function meta_table(main, meta::NamedTuple{names}) where {names}
299+
eltypes = Tuple{map(eltype, values(meta))...}
300+
F = MetaT{eltype(main),names,eltypes}
300301
return StructArray{F}(; main=main, meta...)
301302
end
302303

0 commit comments

Comments
 (0)