Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ndk committed Feb 17, 2025
1 parent 4fc7cbd commit fde9918
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tempodb/encoding/vparquet4/block_traceql.go
Original file line number Diff line number Diff line change
Expand Up @@ -2008,10 +2008,20 @@ func createSpanIterator(makeIter makeIterFn, innerIterators []parquetquery.Itera
return nil, fmt.Errorf("creating predicate: %w", err)
}
if pred != nil {
subIters = append(subIters, makeIter(columnPathResourceAttrDouble, pred, cond.Attribute.Name))
subIters = append(subIters,
parquetquery.NewJoinIterator(
DefinitionLevelResourceSpansILSSpanAttrs,
[]parquetquery.Iterator{
makeIter(columnPathSpanAttrKey, parquetquery.NewStringInPredicate([]string{cond.Attribute.Name}), "key"),
makeIter(columnPathSpanAttrDouble, pred, "float"),
},
&attributeCollector{},
parquetquery.WithPool(pqAttrPool),
),
)
}
}
if unionItr := unionIfNeeded(DefinitionLevelResourceSpansILSSpan, subIters, nil); unionItr != nil {
if unionItr := unionIfNeeded(DefinitionLevelResourceSpansILSSpanAttrs, subIters, nil); unionItr != nil {
iters = append(iters, unionItr)
}

Expand Down

0 comments on commit fde9918

Please sign in to comment.