Skip to content

Commit bdcecc4

Browse files
author
Shashi Gowda
committed
fix garbage when promoting from nothing to nullable
1 parent ce93960 commit bdcecc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/csv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function promote_column(col, rowno, T, inner=false)
425425
end
426426
return arr
427427
elseif T <: DataValue
428-
DataValueArray(Array{eltype(T)}(length(col)), zeros(Bool, length(col)))
428+
DataValueArray(Array{eltype(T)}(length(col)), ones(Bool, length(col)))
429429
else
430430
error("empty to non-nullable")
431431
end

0 commit comments

Comments
 (0)