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

[Python] Properly use NumPy array stride when scanning object arrays. #7964

Merged
merged 6 commits into from
Jun 20, 2023

Conversation

Tishj
Copy link
Contributor

@Tishj Tishj commented Jun 16, 2023

This PR fixes #7937

Numpy arrays can have strides, which indicate the offset between each entry of the array.
When this is equal to the itemsize the iteration through this is straight forward, but if the stride differs we need to take this into account.

We already did this in other places, but this was not being done for object columns yet.

@Mytherin Mytherin merged commit a5e1377 into duckdb:master Jun 20, 2023
@Mytherin
Copy link
Collaborator

Thanks!

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

Successfully merging this pull request may close these issues.

Correctness issues reading unconsolidated Pandas DataFrames
2 participants