Skip to content

BUG: Add PyArrow datelike type support for map() #61644

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

KevsterAmp
Copy link
Contributor

@KevsterAmp KevsterAmp commented Jun 13, 2025

@KevsterAmp KevsterAmp changed the title BUG: PyArrow datelike type support for map() BUG: Add PyArrow datelike type support for map() Jun 13, 2025
@simonjayhawkins simonjayhawkins added Bug Apply Apply, Aggregate, Transform, Map Arrow pyarrow functionality labels Jun 25, 2025
@jbrockmendel
Copy link
Member

Can you add tests based on the original issue

or pa.types.is_date(self.dtype.pyarrow_dtype)
or pa.types.is_timestamp(self.dtype.pyarrow_dtype)
]
):
Copy link
Member

Choose a reason for hiding this comment

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

any idea why the super().map method isn't working correctly? If fixing things there is viable, that would be a better outcome

@jbrockmendel
Copy link
Member

Looks like some tests are failing in the CI. Can you address those?

@KevsterAmp
Copy link
Contributor Author

@jbrockmendel sorry I was inactive last 2 weeks. Will take a look at this issue atm

@KevsterAmp KevsterAmp marked this pull request as ready for review July 9, 2025 14:20
@KevsterAmp KevsterAmp requested a review from jbrockmendel July 10, 2025 01:59
@KevsterAmp
Copy link
Contributor Author

I now used self.dtype.kind in "mM" instead.

I saw that the test function (test_map()) uses it to test out datetime likes. So I realized its best to use it to filter out datetime likes on the function as well

@KevsterAmp
Copy link
Contributor Author

@jbrockmendel Is the fix for the existing test_map enough? or should I add a test similar to the issue as well? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apply Apply, Aggregate, Transform, Map Arrow pyarrow functionality Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: PyArrow timestamp type does not work with map() function
3 participants