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

fixes the trailing zero bytes trimming problem #283

Closed
wants to merge 10 commits into from

Conversation

xinstein
Copy link

@xinstein xinstein commented Jan 9, 2022

Addresses #280

replaces #282

Copy link
Member

@xzkostyan xzkostyan left a comment

Choose a reason for hiding this comment

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

We should write test for this bugfix. tests/numpy/columns/test_string.py is a good place for it.

@@ -26,7 +26,8 @@ class NumpyByteStringColumn(NumpyColumn):
null_value = b''

def read_items(self, n_items, buf):
return np.array(buf.read_strings(n_items), dtype=self.dtype)
# return np.array(buf.read_strings(n_items), 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.

What dtype was before this fix in array instance?
Do we need this comment?

@xinstein
Copy link
Author

xinstein commented Jan 10, 2022

I can't run the test case locally due to a lot of importing errors, I looked into some and it's due to my OS (windows10).
Can't make it run on my computer without a lot of changes to the tests module.

@xzkostyan
Copy link
Member

Test is not working. Feel free to reopen PR.

@xzkostyan xzkostyan closed this Feb 18, 2024
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.

2 participants