|
408 | 408 |
|
409 | 409 | function _fill_outputmat_withoutid(T, in_cols, ds, starts, perms, new_col_names, row_names_length, threads; default_fill = missing) |
410 | 410 |
|
411 | | - @assert _check_allocation_limit(nonmissingtype(T), row_names_length*_ngroups(ds), length(new_col_names)) < 1.0 "The output data set is huge and there is not enough resource, check the passed arguments." |
| 411 | + @assert _check_allocation_limit(our_nonmissingtype(T), row_names_length*_ngroups(ds), length(new_col_names)) < 1.0 "The output data set is huge and there is not enough resource, check the passed arguments." |
412 | 412 | CT = promote_type(T, typeof(default_fill)) |
413 | 413 | # outputmat = [__fill!(_our_vect_alloc(CT, row_names_length*_ngroups(ds)), default_fill) for _ in 1:length(new_col_names)] |
414 | 414 | outputmat = Vector{typeof(_our_vect_alloc(CT, 0))}(undef, length(new_col_names)) |
|
420 | 420 |
|
421 | 421 | function _fill_outputmat_withid(T, in_cols, ds, starts, perms, ids, new_col_names, row_names_length, threads; default_fill = missing) |
422 | 422 |
|
423 | | - @assert _check_allocation_limit(nonmissingtype(T), row_names_length*_ngroups(ds), length(new_col_names)) < 1.0 "The output data set is huge and there is not enough resource, check the passed arguments." |
| 423 | + @assert _check_allocation_limit(our_nonmissingtype(T), row_names_length*_ngroups(ds), length(new_col_names)) < 1.0 "The output data set is huge and there is not enough resource, check the passed arguments." |
424 | 424 | CT = promote_type(T, typeof(default_fill)) |
425 | 425 | # outputmat = [fill!(_our_vect_alloc(CT, row_names_length*_ngroups(ds)), default_fill) for _ in 1:length(new_col_names)] |
426 | 426 | outputmat = Vector{typeof(_our_vect_alloc(CT, 0))}(undef, length(new_col_names)) |
@@ -787,7 +787,7 @@ function flatten!(ds::Dataset, |
787 | 787 | for col in 2:length(idxcols) |
788 | 788 | if mapformats |
789 | 789 | f_fmt = getformat(ds, idxcols[col]) |
790 | | - push!(all_idxcols, byrow(ds, f_fmt, idxcols[col]), threads = threads) |
| 790 | + push!(all_idxcols, byrow(ds, f_fmt, idxcols[col], threads = threads)) |
791 | 791 | else |
792 | 792 | push!(all_idxcols, _columns(ds)[idxcols[col]]) |
793 | 793 | end |
@@ -854,7 +854,7 @@ function flatten(ds::AbstractDataset, |
854 | 854 | for col in 2:length(idxcols) |
855 | 855 | if mapformats |
856 | 856 | f_fmt = getformat(ds, idxcols[col]) |
857 | | - push!(all_idxcols, byrow(ds, f_fmt, idxcols[col]), threads = threads) |
| 857 | + push!(all_idxcols, byrow(ds, f_fmt, idxcols[col], threads = threads)) |
858 | 858 | else |
859 | 859 | push!(all_idxcols, _columns(ds)[idxcols[col]]) |
860 | 860 | end |
|
0 commit comments