Skip to content

Commit

Permalink
update pingcap#3
Browse files Browse the repository at this point in the history
  • Loading branch information
gtygo committed Oct 8, 2019
1 parent ee281e6 commit 8307a39
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions expression/builtin_compare_vec.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,26 +480,22 @@ func (b *builtinNullEQDecimalSig) vectorized() bool {

func (b *builtinNullEQDecimalSig) vecEvalInt(input *chunk.Chunk, result *chunk.Column) error {
n := input.NumRows()

buf0, err := b.bufAllocator.get(types.ETDecimal, n)
if err != nil {
return err
}
defer b.bufAllocator.put(buf0)
if err := b.args[0].VecEvalDecimal(b.ctx, input, buf0); err != nil {
return err
}
defer b.bufAllocator.put(buf0)

buf1, err := b.bufAllocator.get(types.ETDecimal, n)
if err != nil {
return err
}

defer b.bufAllocator.put(buf1)
if err := b.args[1].VecEvalDecimal(b.ctx, input, buf1); err != nil {
return err
}
defer b.bufAllocator.put(buf1)

args0 := buf0.Decimals()
args1 := buf1.Decimals()
result.ResizeInt64(n, false)
Expand Down

0 comments on commit 8307a39

Please sign in to comment.