Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

Commit

Permalink
Fix an ambiguity on 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj committed Sep 1, 2016
1 parent e232313 commit 6a9996b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataStreams.jl
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Data.getfield{T}(source::DataFrame, ::Type{T}, row, col) = (@inbounds A = Data.g
# DataFrame as a Data.Sink
DataFrame{T<:Data.StreamType}(so, ::Type{T}, append::Bool, args...) = DataFrame(Data.schema(so), T, Data.reference(so))

function DataFrame{T<:Data.StreamType}(sch::Schema, ::Type{T}=Data.Field, ref=UInt8[])
function DataFrame{T<:Data.StreamType}(sch::Schema, ::Type{T}=Data.Field, ref::Vector{UInt8}=UInt8[])
rows, cols = size(sch)
rows = T === Data.Column || rows < 0 ? 0 : rows # don't pre-allocate for Column streaming
columns = Vector{Any}(cols)
Expand Down

0 comments on commit 6a9996b

Please sign in to comment.