Exemple #1
0
func (b *executorBuilder) buildSort(v *plan.Sort) Executor {
	src := b.build(v.Src())
	e := &SortExec{
		Src:     src,
		ByItems: v.ByItems,
		ctx:     b.ctx,
	}
	return e
}
Exemple #2
0
func (b *executorBuilder) buildSort(v *plan.Sort) Executor {
	src := b.build(v.Src())
	if v.Bypass && !v.ByItems[0].Desc {
		return src
	}
	e := &SortExec{
		Src:     src,
		ByItems: v.ByItems,
		ctx:     b.ctx,
	}
	return e
}