Skip to content

Coalesce broken with all floats - #970

Merged
mborodii-prog merged 4 commits into
mainfrom
969-bug-coalesce-broken-with-all-floats
May 19, 2026
Merged

Coalesce broken with all floats#970
mborodii-prog merged 4 commits into
mainfrom
969-bug-coalesce-broken-with-all-floats

Conversation

@mborodii-prog

Copy link
Copy Markdown
Contributor

This pull request adds a new test case to ensure that coalescing columns with float values preserves both the values and their data type, and also updates the implementation to use .to_numpy(dtype=object) for improved consistency when handling data types.

Testing improvements:

  • Added a test (test_all_floats) to verify that coalescing two columns of all floats preserves both the float values and their data type in the output column.

Implementation updates:

  • Changed the coalescing logic in merge.py to use .to_numpy(dtype=object) instead of .values when converting columns to a NumPy array, ensuring more explicit handling of data types.

@mborodii-prog mborodii-prog linked an issue Apr 22, 2026 that may be closed by this pull request
1 task
thomasstvr
thomasstvr previously approved these changes May 15, 2026
@mborodii-prog
mborodii-prog requested a review from thomasstvr May 18, 2026 11:40
@mborodii-prog

Copy link
Copy Markdown
Contributor Author

@thomasstvr can you reapprove pls?

@mborodii-prog
mborodii-prog merged commit 9cf8c91 into main May 19, 2026
33 checks passed
@mborodii-prog
mborodii-prog deleted the 969-bug-coalesce-broken-with-all-floats branch May 19, 2026 06:58
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.

[BUG] Coalesce broken with all floats

2 participants