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

Method filterAppend

compiler/semantic/schema.go:409–420  ·  view source on GitHub ↗
(out []*sem.ThisExpr, rs relScope, n ast.Node, path []string)

Source from the content-addressed store, hash-verified

407}
408
409func (j *joinUsingScope) filterAppend(out []*sem.ThisExpr, rs relScope, n ast.Node, path []string) ([]*sem.ThisExpr, error) {
410 exprs, err := rs.star(n, "", path)
411 if err != nil {
412 return nil, err
413 }
414 for _, this := range exprs {
415 if _, skip := j.skip[this.Path[len(this.Path)-1]]; !skip {
416 out = append(out, this)
417 }
418 }
419 return out, nil
420}
421
422func (s *selectScope) star(n ast.Node, table string, path field.Path) ([]*sem.ThisExpr, error) {
423 return s.in.star(n, table, append(path, "in"))

Callers 1

starMethod · 0.95

Calls 1

starMethod · 0.65

Tested by

no test coverage detected