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

Avoid method dispatch ambiguities in DataFrames.jl #3179

Merged
merged 9 commits into from
Sep 26, 2022
Merged

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Sep 25, 2022

@nalimilan - this is a first step towards DataFrames.jl 1.4. release. To make sure things are precompiled correctly one of the recommendations is to avoid dispatch ambiguities. This recommendation makes sense in general.
This PR:

  • fixes these cases
  • fixes incorrect behavior that was detected when analyzing these ambiguities
  • makes sure that in the future we test for dispatch ambiguities and for unbound type parameters

I comment on the reasons for changes in the code.

@bkamins bkamins requested a review from nalimilan September 25, 2022 08:07
@bkamins bkamins added the bug label Sep 25, 2022
@bkamins bkamins added this to the 1.4 milestone Sep 25, 2022
src/other/broadcasting.jl Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
src/groupeddataframe/fastaggregates.jl Show resolved Hide resolved
src/groupeddataframe/groupeddataframe.jl Outdated Show resolved Hide resolved
src/groupeddataframe/groupeddataframe.jl Outdated Show resolved Hide resolved
src/groupeddataframe/groupeddataframe.jl Show resolved Hide resolved
src/groupeddataframe/groupeddataframe.jl Outdated Show resolved Hide resolved
test/dataframe.jl Show resolved Hide resolved
@bkamins
Copy link
Member Author

bkamins commented Sep 25, 2022

I have updated the PR. The thing to check is the check_agrregate changes I added (I think they are correct, but these things are tricky).

NEWS.md Outdated Show resolved Hide resolved
Co-authored-by: Milan Bouchet-Valat <[email protected]>
@bkamins bkamins merged commit c3fd232 into main Sep 26, 2022
@bkamins bkamins deleted the bk/fix_ambiguities branch September 26, 2022 11:39
@bkamins
Copy link
Member Author

bkamins commented Sep 26, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants