MCPcopy
hub / github.com/grafana/tempo / orIfNeeded

Function orIfNeeded

tempodb/encoding/vparquet3/block_traceql.go:2911–2920  ·  view source on GitHub ↗
(preds []parquetquery.Predicate)

Source from the content-addressed store, hash-verified

2909}
2910
2911func orIfNeeded(preds []parquetquery.Predicate) parquetquery.Predicate {
2912 switch len(preds) {
2913 case 0:
2914 return nil
2915 case 1:
2916 return preds[0]
2917 default:
2918 return parquetquery.NewOrPredicate(preds...)
2919 }
2920}
2921
2922// unsafeToString casts a byte slice to a string w/o allocating
2923func unsafeToString(b []byte) string {

Callers 6

createSpanIteratorFunction · 0.70
createResourceIteratorFunction · 0.70
createAttributeIteratorFunction · 0.70

Calls 1

NewOrPredicateFunction · 0.92

Tested by

no test coverage detected