executor: remove Next for AnalyzeExec (#6012)
This commit is contained in:
@ -52,17 +52,8 @@ const (
|
||||
defaultCMSketchWidth = 2048
|
||||
)
|
||||
|
||||
// Next implements the Executor Next interface.
|
||||
func (e *AnalyzeExec) Next(ctx context.Context) (Row, error) {
|
||||
return nil, errors.Trace(e.run(ctx))
|
||||
}
|
||||
|
||||
// NextChunk implements the Executor NextChunk interface.
|
||||
func (e *AnalyzeExec) NextChunk(ctx context.Context, chk *chunk.Chunk) error {
|
||||
return errors.Trace(e.run(ctx))
|
||||
}
|
||||
|
||||
func (e *AnalyzeExec) run(ctx context.Context) error {
|
||||
concurrency, err := getBuildStatsConcurrency(e.ctx)
|
||||
if err != nil {
|
||||
return errors.Trace(err)
|
||||
|
||||
Reference in New Issue
Block a user