Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix allocatecolumn #298

Merged
merged 3 commits into from
Sep 17, 2022
Merged

Fix allocatecolumn #298

merged 3 commits into from
Sep 17, 2022

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Sep 16, 2022

The reason for the fix is that old code:

  • in case eltype is Any used undef branch (which most of the time works, but it is not guaranteed)
  • not all array types support initializer with a value other than undef (e.g. this is the case for CategoricalArray)

What I propose is a safe approach, but maybe there would be better ideas.

x-ref: massive errors in DataFrames.jl JuliaData/DataFrames.jl#3158

CC @quinnj @nalimilan

@bkamins bkamins added the bug Something isn't working label Sep 16, 2022
@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Base: 95.05% // Head: 95.07% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (3cb5434) compared to base (681b253).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   95.05%   95.07%   +0.02%     
==========================================
  Files           7        7              
  Lines         708      711       +3     
==========================================
+ Hits          673      676       +3     
  Misses         35       35              
Impacted Files Coverage Δ
src/fallbacks.jl 98.63% <100.00%> (+0.02%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@quinnj quinnj merged commit d0e92d1 into main Sep 17, 2022
@quinnj quinnj deleted the bkamins-patch-1 branch September 17, 2022 15:18
@bkamins
Copy link
Member Author

bkamins commented Sep 17, 2022

Thank you! Can we have a patch release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants