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

Method projection

compiler/semantic/sql.go:207–217  ·  view source on GitHub ↗
(columns []column, inType super.Type)

Source from the content-addressed store, hash-verified

205}
206
207func (t *translator) projection(columns []column, inType super.Type) {
208 for k := range columns {
209 // Translates all expressions that weren't already expanded
210 // from * patterns.
211 if columns[k].semExpr == nil {
212 e, typ := t.expr(columns[k].astExpr, inType)
213 columns[k].semExpr = e
214 columns[k].typ = typ
215 }
216 }
217}
218
219func (t *translator) emitProjection(columns []column, grouped bool, seq sem.Seq) (sem.Seq, *staticTable) {
220 if len(columns) == 0 {

Callers 1

sqlSelectMethod · 0.95

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected