Skip to content

chore: add StructFields::merge#3584

Merged
blaginin merged 4 commits intodevelopfrom
db/add-structfields-merge
Jun 20, 2025
Merged

chore: add StructFields::merge#3584
blaginin merged 4 commits intodevelopfrom
db/add-structfields-merge

Conversation

@blaginin
Copy link
Member

Forth time I had to write this logic 😀 Maybe we can have it here?

Signed-off-by: blaginin <dima@spiraldb.com>
@blaginin blaginin self-assigned this Jun 20, 2025
Signed-off-by: blaginin <dima@spiraldb.com>
@blaginin blaginin changed the title Add StructFields::merge chore: add StructFields::merge Jun 20, 2025
@blaginin blaginin added the changelog/chore A trivial change label Jun 20, 2025
Signed-off-by: blaginin <dima@spiraldb.com>
Copy link
Contributor

@joseph-isaacs joseph-isaacs left a comment

Choose a reason for hiding this comment

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

Later/now it might be nice to have a version of this that handles duplicates in a different way

///
/// # Errors
/// Returns an error if the merged struct would have duplicate field names.
pub fn merge(&self, other: &Self) -> VortexResult<Self> {
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we call this disjoint_merge?

Signed-off-by: blaginin <dima@spiraldb.com>
@blaginin blaginin merged commit 75367c5 into develop Jun 20, 2025
33 checks passed
@blaginin blaginin deleted the db/add-structfields-merge branch June 20, 2025 12:23
mwlon pushed a commit to mwlon/vortex that referenced this pull request Jul 4, 2025
Signed-off-by: mwlon <m.w.loncaric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/chore A trivial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants