MCPcopy Create free account
hub / github.com/brimdata/super / dedup

Function dedup

compiler/semantic/sql.go:720–727  ·  view source on GitHub ↗
(scores map[string]int, s string)

Source from the content-addressed store, hash-verified

718}
719
720func dedup(scores map[string]int, s string) string {
721 cnt := scores[s]
722 scores[s] = cnt + 1
723 if cnt != 0 {
724 s = fmt.Sprintf("%s_%d", s, cnt)
725 }
726 return s
727}
728
729func valuesExpr(e sem.Expr, seq sem.Seq) sem.Seq {
730 return append(seq, sem.NewValues(e, e))

Callers 1

formProjectionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected