Skip to content

Commit 9f0c6c6

Browse files
authored
fix: column union (#968)
fix for column union The algorithm for unioning columns was broken when there were different numbers of columns in total.
1 parent f4e2a64 commit 9f0c6c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/generate/union.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ func unionColumns(left []corset.SourceColumn, right []corset.SourceColumn) []cor
120120
r++
121121
}
122122
}
123+
// Including any remaining left columns
124+
columns = append(columns, left[l:]...)
125+
// Including any remaining right columns
126+
columns = append(columns, right[r:]...)
123127
//
124128
return columns
125129
}

0 commit comments

Comments
 (0)