Skip to content

Commit cfe21d6

Browse files
authored
feat: remove sanity check in generator (#1087)
remove sanity check in generator This removes a sanity check that was preventing computed and non-computed columns from being unioned together.
1 parent d40613b commit cfe21d6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/cmd/generate/union.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ func unionColumn(module string, left corset.SourceColumn, right corset.SourceCol
136136
} else if left.Multiplier != right.Multiplier {
137137
panic(fmt.Sprintf("inconsistent multiplier for column %s.%s (%d vs %d)",
138138
module, left.Name, left.Multiplier, right.Multiplier))
139-
} else if left.Computed != right.Computed {
140-
panic(fmt.Sprintf("inconsistent kind for column %s.%s (computed vs not computed)", module, left.Name))
141139
}
142140
//
143141
if left.Bitwidth >= right.Bitwidth {

0 commit comments

Comments
 (0)