File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -480,26 +480,22 @@ func (b *builtinNullEQDecimalSig) vectorized() bool {
480
480
481
481
func (b * builtinNullEQDecimalSig ) vecEvalInt (input * chunk.Chunk , result * chunk.Column ) error {
482
482
n := input .NumRows ()
483
-
484
483
buf0 , err := b .bufAllocator .get (types .ETDecimal , n )
485
484
if err != nil {
486
485
return err
487
486
}
487
+ defer b .bufAllocator .put (buf0 )
488
488
if err := b .args [0 ].VecEvalDecimal (b .ctx , input , buf0 ); err != nil {
489
489
return err
490
490
}
491
- defer b .bufAllocator .put (buf0 )
492
-
493
491
buf1 , err := b .bufAllocator .get (types .ETDecimal , n )
494
492
if err != nil {
495
493
return err
496
494
}
497
-
495
+ defer b . bufAllocator . put ( buf1 )
498
496
if err := b .args [1 ].VecEvalDecimal (b .ctx , input , buf1 ); err != nil {
499
497
return err
500
498
}
501
- defer b .bufAllocator .put (buf1 )
502
-
503
499
args0 := buf0 .Decimals ()
504
500
args1 := buf1 .Decimals ()
505
501
result .ResizeInt64 (n , false )
You can’t perform that action at this time.
0 commit comments