(gbAttrs []dql.GroupByAttr,
blockedPreds map[string]struct{})
| 1404 | } |
| 1405 | |
| 1406 | func 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 | } |
no outgoing calls
no test coverage detected