From 7fd3bb25c6751d5aa89751085713355cb7bce492 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Mon, 24 Aug 2020 13:47:43 -0600 Subject: [PATCH 1/2] Don't match on AbstractVector type parameter due to compiler crash Fixes #2382. Same issue and fix as https://github.com/JuliaData/DataFrames.jl/issues/2326. --- src/groupeddataframe/splitapplycombine.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/groupeddataframe/splitapplycombine.jl b/src/groupeddataframe/splitapplycombine.jl index 078b61320f..9ee7c22247 100644 --- a/src/groupeddataframe/splitapplycombine.jl +++ b/src/groupeddataframe/splitapplycombine.jl @@ -969,7 +969,7 @@ function copyto_widen!(res::AbstractVector{T}, x::AbstractVector) where T end function groupreduce!(res::AbstractVector, f, op, condf, adjust, checkempty::Bool, - incol::AbstractVector{T}, gd::GroupedDataFrame) where {T} + incol::AbstractVector, gd::GroupedDataFrame) n = length(gd) if adjust !== nothing || checkempty counts = zeros(Int, n) @@ -1001,7 +1001,7 @@ function groupreduce!(res::AbstractVector, f, op, condf, adjust, checkempty::Boo end @inbounds for gix in eachindex(res) if !isassigned(res, gix) - res[gix] = initf(nonmissingtype(T)) + res[gix] = initf(nonmissingtype(eltype(incol))) end end end From 92b215c0f648f314cede9e867e0b5840f7776a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Mon, 24 Aug 2020 22:45:59 +0200 Subject: [PATCH 2/2] bump patch --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index d3bee6ff1e..4d8bc8321c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DataFrames" uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0" -version = "0.21.6" +version = "0.21.7" [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"