@@ -34,8 +34,8 @@ function row_sum(ds::AbstractDataset, f::Function, cols = names(ds, Union{Missi
34
34
CT = mapreduce (eltype, promote_type, view (_columns (ds),colsidx))
35
35
T = Core. Compiler. return_type (f, Tuple{CT})
36
36
CT = our_nonmissingtype (T)
37
- CT <: Base.SmallSigned ? CT = Int : nothing
38
- CT <: Base.SmallUnsigned ? CT = UInt : nothing
37
+ CT <: SMALLSIGNED ? CT = Int : nothing
38
+ CT <: SMALLUNSIGNED ? CT = UInt : nothing
39
39
CT <: Bool ? CT = Int : nothing
40
40
T = Union{Missing, CT}
41
41
init0 = _missings (T, nrow (ds))
@@ -69,8 +69,8 @@ function row_prod(ds::AbstractDataset, f::Function, cols = names(ds, Union{Missi
69
69
CT = mapreduce (eltype, promote_type, view (_columns (ds),colsidx))
70
70
T = Core. Compiler. return_type (f, Tuple{CT})
71
71
CT = our_nonmissingtype (T)
72
- CT <: Base.SmallSigned ? CT = Int : nothing
73
- CT <: Base.SmallUnsigned ? CT = UInt : nothing
72
+ CT <: SMALLSIGNED ? CT = Int : nothing
73
+ CT <: SMALLUNSIGNED ? CT = UInt : nothing
74
74
CT <: Bool ? CT = Int : nothing
75
75
T = Union{Missing, CT}
76
76
init0 = _missings (T, nrow (ds))
@@ -744,9 +744,9 @@ function row_cumsum!(ds::Dataset, cols = names(ds, Union{Missing, Number}); miss
744
744
colsidx = index (ds)[cols]
745
745
T = mapreduce (eltype, promote_type, view (_columns (ds),colsidx))
746
746
if T <: Union{Missing, INTEGERS}
747
- T <: Union{Missing, Base.SmallSigned }
748
- T = T <: Union{Missing, Base.SmallSigned , Bool} ? Union{Int, Missing} : T
749
- T = T <: Union{Missing, Base.SmallUnsigned } ? Union{Missing, UInt} : T
747
+ T <: Union{Missing, SMALLSIGNED }
748
+ T = T <: Union{Missing, SMALLSIGNED , Bool} ? Union{Int, Missing} : T
749
+ T = T <: Union{Missing, SMALLUNSIGNED } ? Union{Missing, UInt} : T
750
750
end
751
751
for i in colsidx
752
752
if eltype (ds[! , i]) >: Missing
0 commit comments