Skip to content

Closes #4147: parse_single_value to handle uints represented as nega… - #4150

Merged
ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4147_parse_single_value_to_handle_uints_represented_as_negative_numbers
Mar 12, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:masterfrom
ajpotts:4147_parse_single_value_to_handle_uints_represented_as_negative_numbers

Conversation

@ajpotts

@ajpotts ajpotts commented Mar 5, 2025

Copy link
Copy Markdown
Contributor

Numpy 2.0 does not support conversion of negative numbers to uint64. For example, np.uint64("-2") will not work. Therefore arkouda needs to update the code for the parse_single_value to handle the case when the server sends a uint as a string representing a negative number.

Closes #4147: parse_single_value to handle uints represented as negative numbers

@ajpotts
ajpotts marked this pull request as ready for review March 5, 2025 19:15
@ajpotts
ajpotts force-pushed the 4147_parse_single_value_to_handle_uints_represented_as_negative_numbers branch 4 times, most recently from d201673 to 3481660 Compare March 6, 2025 18:10

@1RyanK 1RyanK left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good!

@ajpotts
ajpotts requested a review from e-kayrakli March 6, 2025 19:15

@e-kayrakli e-kayrakli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am hoping that we can make this PR obsolete by fixing the server. Falling short of that, a comment explaining the workaround accompanied by a link to a bug report would be great for maintainability and tracking.

Comment thread arkouda/pdarrayclass.py Resolved
Comment thread arkouda/pdarrayclass.py Resolved
@ajpotts
ajpotts force-pushed the 4147_parse_single_value_to_handle_uints_represented_as_negative_numbers branch 4 times, most recently from 7776a3d to dffcfdf Compare March 10, 2025 13:55
@ajpotts
ajpotts force-pushed the 4147_parse_single_value_to_handle_uints_represented_as_negative_numbers branch from dffcfdf to b78e932 Compare March 12, 2025 14:09

@drculhane drculhane left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good fix

@ajpotts
ajpotts added this pull request to the merge queue Mar 12, 2025
Merged via the queue into Bears-R-Us:master with commit 14fe822 Mar 12, 2025
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.

parse_single_value to handle uints represented as negative numbers

5 participants