MCPcopy
hub / github.com/uber/aresdb / aggregateResult

Method aggregateResult

query/sql/sql_parser.go:131–140  ·  view source on GitHub ↗
(node antlr.ParseTree, aggregate interface{}, nextResult interface{})

Source from the content-addressed store, hash-verified

129}
130
131func (v *ASTBuilder) aggregateResult(node antlr.ParseTree, aggregate interface{}, nextResult interface{}) interface{} {
132 location := v.getLocation(node)
133 if nextResult == nil {
134 panic(fmt.Errorf("%v operation not yet implemented at (line:%d, col:%d)", node.GetText(), location.Line, location.CharPosition))
135 }
136 if aggregate == nil {
137 return nextResult
138 }
139 panic(fmt.Errorf("%v operation not yet implemented at (line:%d, col:%d)", node.GetText(), location.Line, location.CharPosition))
140}
141
142func (v *ASTBuilder) getQualifiedName(ctx antlrgen.IQualifiedNameContext) *tree.QualifiedName {
143 var result *tree.QualifiedName

Callers 1

VisitChildrenMethod · 0.95

Calls 2

getLocationMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected