mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-31 15:06:26 +00:00
wip
This commit is contained in:
parent
ce34e93874
commit
bf2a031382
2 changed files with 11 additions and 2 deletions
|
@ -137,6 +137,9 @@ func (br *blockResult) initFromFilterNeededColumns(brSrc *blockResult, bm *bitma
|
|||
}
|
||||
|
||||
func (br *blockResult) appendFilteredColumn(brSrc *blockResult, cSrc *blockResultColumn, bm *bitmap) {
|
||||
if len(br.timestamps) == 0 {
|
||||
return
|
||||
}
|
||||
cDst := blockResultColumn{
|
||||
name: cSrc.name,
|
||||
}
|
||||
|
@ -210,7 +213,8 @@ func (br *blockResult) sizeBytes() int {
|
|||
// The returned result is valid only until rcs are modified.
|
||||
func (br *blockResult) setResultColumns(rcs []resultColumn) {
|
||||
br.reset()
|
||||
if len(rcs) == 0 {
|
||||
|
||||
if len(rcs) == 0 || len(rcs[0].values) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -87,10 +87,15 @@ func (s *Storage) runQuery(ctx context.Context, tenantIDs []TenantID, q *Query,
|
|||
}
|
||||
|
||||
pp := newDefaultPipeProcessor(func(workerID uint, br *blockResult) {
|
||||
if len(br.timestamps) == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
brs := getBlockRows()
|
||||
csDst := brs.cs
|
||||
|
||||
for _, c := range br.getColumns() {
|
||||
cs := br.getColumns()
|
||||
for _, c := range cs {
|
||||
values := c.getValues(br)
|
||||
csDst = append(csDst, BlockColumn{
|
||||
Name: c.name,
|
||||
|
|
Loading…
Reference in a new issue