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

Function operandsEqual

tempodb/encoding/vparquet4/coalesce_conditions.go:70–83  ·  view source on GitHub ↗
(c1, c2 traceql.Condition)

Source from the content-addressed store, hash-verified

68}
69
70func operandsEqual(c1, c2 traceql.Condition) bool {
71 if len(c1.Operands) != len(c2.Operands) {
72 return false
73 }
74
75 // todo: sort first?
76 for i := 0; i < len(c1.Operands); i++ {
77 if !c1.Operands[i].StrictEquals(&c2.Operands[i]) {
78 return false
79 }
80 }
81
82 return true
83}

Callers 1

coalesceFunction · 0.70

Calls 1

StrictEqualsMethod · 0.80

Tested by

no test coverage detected