You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/dataset/other.jl
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -394,7 +394,7 @@ function Base.map(ds::AbstractDataset, f::Vector{<:Function}, cols::MultiColumnI
394
394
v =_columns(ds)[j]
395
395
396
396
if threads
397
-
T = Core.Compiler.return_type(_f, (eltype(v), ))
397
+
T = Core.Compiler.return_type(_f, Tuple{eltype(v)})
398
398
fv =_our_vect_alloc(T, length(v))
399
399
_hp_map_a_function!(fv, _f, v)
400
400
else
@@ -492,7 +492,7 @@ function Base.map!(ds::AbstractDataset, f::Vector{<:Function}, cols::MultiColumn
492
492
# Core.Compiler.return_type cannot handle the situations like x->ismissing(x) ? 0 : x when x is missing and float, since the output of Core.Compiler.return_type is Union{Missing, Float64, Int64}
493
493
# we remove missing and then check the result,
494
494
#TODO is there any problem with this?
495
-
T = Core.Compiler.return_type(f[j], (nonmissingtype(CT),))
495
+
T = Core.Compiler.return_type(f[j], Tuple{nonmissingtype(CT)})
496
496
T = Union{Missing, T}
497
497
ifpromote_type(T, CT) <:CT
498
498
if threads && DataAPI.refpool(_columns(ds)[colsidx[j]]) ===nothing
0 commit comments