Skip to content

Commit afad7a8

Browse files
authored
Merge pull request #111 from JuliaComputing/s/union-fix
fix bug in promoting to Union{Missing, T} from Union{Missing, S}
2 parents b0a9454 + 5956f59 commit afad7a8

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
@@ -439,7 +439,7 @@ function promote_column(col, rowno, T, stringtype, stringarraytype, inner=false)
439439
error("empty to non-nullable")
440440
end
441441
elseif ismissingtype(T)
442-
arr = convert(Array{UnionMissing{eltype(col)}}, col)
442+
arr = convert(Array{UnionMissing{T}}, col)
443443
for i=rowno+1:length(arr)
444444
# if we convert an Array{Int} to be missing-friendly, we will not have missing in here by default
445445
arr[i] = missing

0 commit comments

Comments
 (0)