Bump cel-go to v0.17.8 to pick up CEL estimated cost fix

This commit is contained in:
Joe Betz
2024-02-28 10:52:36 -05:00
parent 54f9807e1e
commit d49949b642
21 changed files with 31 additions and 28 deletions

View File

@@ -520,6 +520,9 @@ func (c *coster) costComprehension(e *exprpb.Expr) CostEstimate {
c.iterRanges.pop(comp.GetIterVar())
sum = sum.Add(c.cost(comp.Result))
rangeCnt := c.sizeEstimate(c.newAstNode(comp.GetIterRange()))
c.computedSizes[e.GetId()] = rangeCnt
rangeCost := rangeCnt.MultiplyByCost(stepCost.Add(loopCost))
sum = sum.Add(rangeCost)