Skip to content

Commit

Permalink
feat: working on initial version of groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Iván Corrales Solera committed Jan 12, 2019
1 parent 42a0d54 commit 7cf2658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/groupby/groupBy.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (op *GroupBy) Run() (reflect.Value, *errors.Error) {
keyContent := output.MapIndex(result[0])

if !keyContent.IsValid() {
slice := reflect.MakeSlice(sliceType, 0, 0)
slice := reflect.MakeSlice(reflect.SliceOf(sliceType), 0, 0)
output.SetMapIndex(result[0], reflect.AppendSlice(slice, val))
} else {
output.SetMapIndex(result[0], reflect.AppendSlice(keyContent, val))
Expand Down

0 comments on commit 7cf2658

Please sign in to comment.