Skip to content

Commit

Permalink
Removed changes to unrelated file
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBQu committed Dec 16, 2024
1 parent 6d103ce commit 662db5a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions internal/planner/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
package planner

import (
"fmt"

"github.com/sourcenetwork/defradb/client"
"github.com/sourcenetwork/defradb/client/request"
"github.com/sourcenetwork/defradb/internal/core"
Expand Down Expand Up @@ -61,6 +59,9 @@ type groupExecInfo struct {
}

// Creates a new group node.

// The function is recursive and will construct the node-chain for any child (`_group`) collections.
// `groupSelect` is optional and will typically be nil if the child `_group` is not requested.
func (p *Planner) GroupBy(n *mapper.GroupBy, parsed *mapper.Select, childSelects []*mapper.Select) (*groupNode, error) {
if n == nil {
return nil, nil
Expand All @@ -82,9 +83,6 @@ func (p *Planner) GroupBy(n *mapper.GroupBy, parsed *mapper.Select, childSelects
// group by fields have to be propagated downwards to ensure correct sub-grouping, otherwise child
// groups will only group on the fields they explicitly reference
childSelect.GroupBy.Fields = append(childSelect.GroupBy.Fields, n.Fields...)
for _, field := range childSelect.GroupBy.Fields {
fmt.Println("field", field)
}
}
dataSources = append(dataSources, newDataSource(childSelect.Index))
}
Expand Down

0 comments on commit 662db5a

Please sign in to comment.