Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: xufei <[email protected]>
  • Loading branch information
windtalker committed Nov 11, 2024
1 parent bc9846b commit 73234e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/util/chunk/chunk_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func (helper *ColumnSwapHelper) mergeInputIdxToOutputIdxes(input *Chunk, inputId
originalDJSet := disjointset.NewSet[int](4)
flag := make([]bool, input.NumCols())
// Detect self column-references inside the input chunk by comparing column addresses
for i := 0; i < input.NumCols(); i++ {
for i := range input.NumCols() {
if flag[i] {
continue
}
Expand All @@ -368,6 +368,7 @@ func (helper *ColumnSwapHelper) mergeInputIdxToOutputIdxes(input *Chunk, inputId
helper.mergedInputIdxToOutputIdxes.CompareAndSwap(nil, &newInputIdxToOutputIdxes)
}

// NewColumnSwapHelper creates a new ColumnSwapHelper.
func NewColumnSwapHelper(usedColumnIndex []int) *ColumnSwapHelper {
helper := &ColumnSwapHelper{InputIdxToOutputIdxes: make(map[int][]int)}
for outputIndex, inputIndex := range usedColumnIndex {
Expand Down

0 comments on commit 73234e2

Please sign in to comment.