MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / removeGroupBy

Function removeGroupBy

edgraph/access.go:1406–1417  ·  view source on GitHub ↗
(gbAttrs []dql.GroupByAttr,
	blockedPreds map[string]struct{})

Source from the content-addressed store, hash-verified

1404}
1405
1406func removeGroupBy(gbAttrs []dql.GroupByAttr,
1407 blockedPreds map[string]struct{}) []dql.GroupByAttr {
1408
1409 filteredGbAttrs := gbAttrs[:0]
1410 for _, gbAttr := range gbAttrs {
1411 if _, ok := blockedPreds[gbAttr.Attr]; ok {
1412 continue
1413 }
1414 filteredGbAttrs = append(filteredGbAttrs, gbAttr)
1415 }
1416 return filteredGbAttrs
1417}

Callers 1

removePredsFromQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected