mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
866c070f32
commit
f0d8284c8a
2 changed files with 12 additions and 2 deletions
|
@ -229,7 +229,7 @@ func (q *Query) getNeededColumns() []string {
|
|||
}
|
||||
dropFieldsNext := make(map[string]struct{})
|
||||
for k := range m {
|
||||
if referredFields[k] == 0 {
|
||||
if k != "*" && referredFields[k] == 0 {
|
||||
dropFieldsNext[k] = struct{}{}
|
||||
}
|
||||
}
|
||||
|
@ -266,6 +266,9 @@ func (q *Query) getNeededColumns() []string {
|
|||
dst = append(dst, f)
|
||||
}
|
||||
}
|
||||
if a, ok := m["*"]; ok {
|
||||
dst = append(dst, a...)
|
||||
}
|
||||
input = normalizeFields(dst)
|
||||
if len(input) == 0 {
|
||||
break
|
||||
|
|
|
@ -38,7 +38,14 @@ func (ps *pipeSort) String() string {
|
|||
}
|
||||
|
||||
func (ps *pipeSort) getNeededFields() ([]string, map[string][]string) {
|
||||
return []string{"*"}, nil
|
||||
fields := make([]string, len(ps.byFields))
|
||||
for i, bf := range ps.byFields {
|
||||
fields[i] = bf.name
|
||||
}
|
||||
m := map[string][]string{
|
||||
"*": fields,
|
||||
}
|
||||
return []string{"*"}, m
|
||||
}
|
||||
|
||||
func (ps *pipeSort) newPipeProcessor(workersCount int, stopCh <-chan struct{}, cancel func(), ppBase pipeProcessor) pipeProcessor {
|
||||
|
|
Loading…
Reference in a new issue