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

REGR: MultiIndex.join does not work for ea dtypes #49284

Merged
merged 6 commits into from
Nov 10, 2022

Conversation

phofl
Copy link
Member

@phofl phofl commented Oct 24, 2022

This can not fall through for regular ea dtypes, rather go through object path

@phofl phofl added Regression Functionality that used to work in a prior pandas version Index Related to the Index class or subclasses NA - MaskedArrays Related to pd.NA and nullable extension arrays labels Oct 24, 2022
@phofl phofl added this to the 1.5.2 milestone Oct 24, 2022
@@ -4636,8 +4636,9 @@ def join(
return self._join_non_unique(other, how=how)
elif not self.is_unique or not other.is_unique:
if self.is_monotonic_increasing and other.is_monotonic_increasing:
if self._can_use_libjoin:
if not is_interval_dtype(self.dtype):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So _can_use_libjoin shouldn't be updated instead?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, in most cases going through object dtype is slower than the alternative. In our case here the alternative can not handle non interval dtype

# otherwise we will fall through to _join_via_get_indexer
# go through object dtype for ea till engine is supported properly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have a GH issue related to an engine for EAs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@phofl
Copy link
Member Author

phofl commented Nov 10, 2022

good to merge @mroeschke ?

@mroeschke mroeschke merged commit f82b1c6 into pandas-dev:main Nov 10, 2022
@mroeschke
Copy link
Member

Thanks @phofl

@lumberbot-app
Copy link

lumberbot-app bot commented Nov 10, 2022

Oops, something went wrong applying the patch ... Please have a look at my logs.

@phofl phofl deleted the 49277 branch November 10, 2022 20:39
phofl added a commit to phofl/pandas that referenced this pull request Nov 10, 2022
* REGR: MultiIndex.join does not work for ea dtypes

* Update base.py

(cherry picked from commit f82b1c6)
phofl added a commit that referenced this pull request Nov 11, 2022
…rk for ea dtypes) (#49627)

REGR: MultiIndex.join does not work for ea dtypes (#49284)

* REGR: MultiIndex.join does not work for ea dtypes

* Update base.py

(cherry picked from commit f82b1c6)
codamuse pushed a commit to codamuse/pandas that referenced this pull request Nov 12, 2022
* REGR: MultiIndex.join does not work for ea dtypes

* Update base.py
mliu08 pushed a commit to mliu08/pandas that referenced this pull request Nov 27, 2022
* REGR: MultiIndex.join does not work for ea dtypes

* Update base.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses NA - MaskedArrays Related to pd.NA and nullable extension arrays Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: inner join with StringDtype multi-indexes gives unexpected result in 1.5.x
2 participants