-
Notifications
You must be signed in to change notification settings - Fork 367
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
WIP: Fix vcat to handle type promotion and preserve PDAs #733
Conversation
Thanks, Sean! Stefan used to jokingly suggest submitting half-baked solutions given that might spur Jeff to "implement it right". Now I feel like that guy:) This should take care of the type promotion. I was also hoping that |
Oh yes, I had thought about that for combining Nullable/DataArrays with other AbstractArrays, but had totally forgotten about PooledDataArrays, which seems more immediate. I'm interested to see if container promotion lands in base soon -- I'm not sure what we should do with corner cases (e.g. |
I think it would be more reliable to define promotion rules. As for |
Makes sense re: Re: |
Yes, DataArray needs to be completely removed once NullableArray arrives. There's no way that |
Updated to preserve PDAs. As with the other proposed solutions, but unlike before, now behaves like |
@garborg Why should it fail? Rather, I think that combining |
Agreed that it probably should work, but everywhere. We've always gone with parity with Base methods -- it should not fail on DataFrames if it should not fail on |
(P.S. Tests have already been added, commented out, for if/when it works universally, in anticipation of someone pushing that through.) |
Compared to the alternatives outlined in the gist in #732, this is looking 4-80x faster (contingent on a forthcoming edit to
copy!
in DataArrays).