Skip to content

Commit

Permalink
expression: implement vectorized evaluation for builtinCoalesceXXSig (
Browse files Browse the repository at this point in the history
  • Loading branch information
gtygo authored and ngaut committed Nov 5, 2019
1 parent 186c6ac commit 9ada79a
Show file tree
Hide file tree
Showing 4 changed files with 409 additions and 56 deletions.
56 changes: 0 additions & 56 deletions expression/builtin_compare_vec.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,14 +330,6 @@ func (b *builtinGTIntSig) vecEvalInt(input *chunk.Chunk, result *chunk.Column) e
return nil
}

func (b *builtinCoalesceDurationSig) vectorized() bool {
return false
}

func (b *builtinCoalesceDurationSig) vecEvalDuration(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinNullEQIntSig) vectorized() bool {
return false
}
Expand All @@ -346,22 +338,6 @@ func (b *builtinNullEQIntSig) vecEvalInt(input *chunk.Chunk, result *chunk.Colum
return errors.Errorf("not implemented")
}

func (b *builtinCoalesceRealSig) vectorized() bool {
return false
}

func (b *builtinCoalesceRealSig) vecEvalReal(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinCoalesceStringSig) vectorized() bool {
return false
}

func (b *builtinCoalesceStringSig) vecEvalString(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinIntervalIntSig) vectorized() bool {
return true
}
Expand Down Expand Up @@ -453,14 +429,6 @@ func (b *builtinLEIntSig) vecEvalInt(input *chunk.Chunk, result *chunk.Column) e
return nil
}

func (b *builtinCoalesceDecimalSig) vectorized() bool {
return false
}

func (b *builtinCoalesceDecimalSig) vecEvalDecimal(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinLTIntSig) vectorized() bool {
return true
}
Expand Down Expand Up @@ -551,14 +519,6 @@ func vecCompareInt(isUnsigned0, isUnsigned1 bool, largs, rargs, result *chunk.Co
}
}

func (b *builtinCoalesceIntSig) vectorized() bool {
return false
}

func (b *builtinCoalesceIntSig) vecEvalInt(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinGreatestTimeSig) vectorized() bool {
return false
}
Expand All @@ -567,22 +527,6 @@ func (b *builtinGreatestTimeSig) vecEvalString(input *chunk.Chunk, result *chunk
return errors.Errorf("not implemented")
}

func (b *builtinCoalesceTimeSig) vectorized() bool {
return false
}

func (b *builtinCoalesceTimeSig) vecEvalTime(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinCoalesceJSONSig) vectorized() bool {
return false
}

func (b *builtinCoalesceJSONSig) vecEvalJSON(input *chunk.Chunk, result *chunk.Column) error {
return errors.Errorf("not implemented")
}

func (b *builtinGreatestRealSig) vectorized() bool {
return true
}
Expand Down
221 changes: 221 additions & 0 deletions expression/builtin_compare_vec_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions expression/builtin_compare_vec_generated_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9ada79a

Please sign in to comment.