-
Notifications
You must be signed in to change notification settings - Fork 368
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
[BREAKING] improve naming of ComposedFunction in aggregation #2274
Conversation
Thanks. Actually this is an opportunity to improve the printing of composed functions: julia> repr(sum ∘ skipmissing)
"sum ∘ skipmissing" Do you agree we'd better take advantage of this by adding a special method? One issue is that julia> repr(Base.Libc.realloc ∘ sum)
"Base.Libc.realloc ∘ sum" So I guess we have to reconstruct the composed name by hand. |
I was considering it but the problem is that things like: |
Ah, right, maybe using |
so you would generate eg |
I don't really know TBH. It's true that the trailing |
OK - I will change it this way. Note that this will also affect multiply nested compositions (but this is rare, so it is probably not a problem). |
I wonder if it's useful here if |
I think it would be useful so that we would not need to use the hack with |
Co-authored-by: Takafumi Arakaki <takafumi.a@gmail.com>
OK to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we'd better not backport this, as it could break some workflows. The inconsistency isn't ideal, but at least it will only hit people who upgrade to a newer Julia version.
Co-authored-by: Milan Bouchet-Valat <nalimilan@club.fr>
OK - I have removed backport. But this means that maybe we should consider making a release 0.22 when Julia 1.5 is out. |
Thank you! |
Fixes change introduced by JuliaLang/julia#35980.
I assume we prefer
function
rather thanComposedFunction
to be used in auto-generated column names. Also this is non-breaking this way.@nalimilan - I have checked and I think that JuliaLang/julia#35980 does not break aggregation code for composed functions (we still should use a fast branch then), but maybe you will want to take a second look.