From 05632c2b562241575f03b857c9845b4e97c35d8f Mon Sep 17 00:00:00 2001 From: Matthew Nibecker Date: Tue, 17 Oct 2023 12:05:00 -0700 Subject: [PATCH] Update compiler/semantic/op.go Co-authored-by: Noah Treuhaft --- compiler/semantic/op.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/semantic/op.go b/compiler/semantic/op.go index a1bcc22e3d..cc20581d92 100644 --- a/compiler/semantic/op.go +++ b/compiler/semantic/op.go @@ -973,7 +973,7 @@ func (a *analyzer) semOpAssignment(p *ast.OpAssignment) (dag.Op, error) { } if _, ok := a.RHS.(*dag.Agg); ok { if _, ok := a.LHS.(*dag.This); !ok { - return nil, errors.New("summarize: illegal use of dynamic assignment in aggregation") + return nil, errors.New("summarize: aggregate output field must be static") } aggs = append(aggs, a) } else {