-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Conversation
There was a problem hiding this 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) |
There was a problem hiding this comment.
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?
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). |
Test is not working. Feel free to reopen PR. |
Addresses #280
replaces #282