Skip to content

Retain logical sample metadata columns when merging#327

Merged
sjspielman merged 4 commits intomainfrom
sjspielman/302-merged-col-types
Oct 9, 2025
Merged

Retain logical sample metadata columns when merging#327
sjspielman merged 4 commits intomainfrom
sjspielman/302-merged-col-types

Conversation

@sjspielman
Copy link
Member

@sjspielman sjspielman commented Oct 8, 2025

Closes #302
Stacked on #325

This PR makes some very minor changes to ensure that logical columns in the sample metadata stay logical when merging. I made the assumption which* I think is reasonable and future-proof that columns starting with is_ should remain logical and not be switched to character. Let me know if you think that is too prescriptive.

I also slightly modified one of the tests to implicitly also check types, to ensure non ^is_ columns are character but ^is_ are logical.

Base automatically changed from sjspielman/324-txdbmaker to main October 8, 2025 20:35
Copy link
Member

@jashapiro jashapiro left a comment

Choose a reason for hiding this comment

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

LGTM, with a suggestion to be just a bit more judicious in mutation.

Co-authored-by: Joshua Shapiro <josh.shapiro@ccdatalab.org>
@sjspielman sjspielman merged commit 5eaa74f into main Oct 9, 2025
9 checks passed
@sjspielman sjspielman deleted the sjspielman/302-merged-col-types branch October 9, 2025 15:47
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.

Ensure correct merged object column types

2 participants