Skip to content

Commit

Permalink
fix for CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Oskin committed Apr 7, 2021
1 parent fe06d64 commit a29808d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Tables.columnaccess(::Type{<:TimestampArray}) = true
Tables.columns(m::TimestampArray) = TimestampArrayTableColsIterator(Dict(:timestamp => 1, (m.names .=> 2:length(m.names)+1)...), m)
Tables.schema(m::TimestampArray) = Tables.Schema((:timestamp, m.names...), nothing)
Tables.schema(m::TimestampArray{D, T}) where {D, T <: Tuple} = Tables.Schema((:timestamp, m.names...), Tuple{D, T.types...})
Tables.schema(m::TimestampArrayTableRowsIterator) = Tables.schema(m.m)

function Tables.getcolumn(m::TimestampArray{D, T}, i::Int) where {D, T <: Tuple}
i == 1 && return map(x -> x.ts, m.tsps)
Expand Down

0 comments on commit a29808d

Please sign in to comment.