-
Notifications
You must be signed in to change notification settings - Fork 208
Description
D:\Work\octosql>call octosql -o csv "SELECT login, ARRAY_AGG_DISTINCT(module) as module_list from Users.csv GROUP BY login" 0<Users.csv 1>Users-modules.csv
panic: invalid value type to print in CSV: List [recovered]
panic: invalid value type to print in CSV: List
goroutine 1 [running]:
github.com/cube2222/octosql/execution/nodes.(*SimpleGroupBy).Run.func5.1()
/home/runner/work/octosql/octosql/execution/nodes/simple_group_by.go:126 +0x4a
panic({0x18beee0, 0xc000094750})
/opt/hostedtoolcache/go/1.18.10/x64/src/runtime/panic.go:838 +0x207
github.com/cube2222/octosql/outputs/formats.FormatCSVValue(0xc0002fe090, {0x7, 0x0, 0x0, 0x0, {0x0, 0x0}, {0x0, 0x0, 0x0}, ...})
/home/runner/work/octosql/octosql/outputs/formats/csv_format.go:65 +0x785
github.com/cube2222/octosql/outputs/formats.(*CSVFormatter).Write(0xc00009e620, {0xc0011a03c0, 0x2, 0x1?})
/home/runner/work/octosql/octosql/outputs/formats/csv_format.go:42 +0x12c
github.com/cube2222/octosql/outputs/eager.(*OutputPrinter).Run.func1({{0x7?, 0x0?}}, {{0xc0011a03c0, 0x2, 0x2}, 0x0, {0x0, 0x0, 0x0}})
/home/runner/work/octosql/octosql/outputs/eager/eager.go:42 +0x54
github.com/cube2222/octosql/execution/nodes.(*Map).Run.func1({{0x1b8d910?, 0xc0000a6240?}}, {{0xc0011a0280, 0x2, 0x2}, 0x0, {0x0, 0x0, 0x0}})
/home/runner/work/octosql/octosql/execution/nodes/map.go:35 +0x289
github.com/cube2222/octosql/execution/nodes.(*SimpleGroupBy).Run.func5.2({0xc0008d0960?, 0x1, 0x10000?}, 0xc0000b8800)
/home/runner/work/octosql/octosql/execution/nodes/simple_group_by.go:140 +0x34b
github.com/zyedidia/generic/hashmap.(*Map[...]).Each(...)
/home/runner/go/pkg/mod/github.com/zyedidia/[email protected]/hashmap/map.go:197
github.com/cube2222/octosql/execution/nodes.(*SimpleGroupBy).Run.func5(0xc00047aeb0?, 0x1b8d910?, 0xc0000a6240?, {{0x1b8d910?, 0xc0000a6240?}, 0x0?}, 0x1ed3a637ef8?)
/home/runner/work/octosql/octosql/execution/nodes/simple_group_by.go:128 +0x150
github.com/cube2222/octosql/execution/nodes.(*SimpleGroupBy).Run(0xc000087380, {{0x1b8d910?, 0xc0000a6240?}, 0x0?}, 0xc0000b7428?, 0x1a7cdf0)
/home/runner/work/octosql/octosql/execution/nodes/simple_group_by.go:144 +0x272
github.com/cube2222/octosql/execution/nodes.(*Map).Run(0xc000471da0, {{0x1b8d910?, 0xc0000a6240?}, 0x0?}, 0xc0000b7428, 0xc0002fe800?)
/home/runner/work/octosql/octosql/execution/nodes/map.go:23 +0xfc
github.com/cube2222/octosql/outputs/eager.(*OutputPrinter).Run(0xc0000b8200, {{0x1b8d910?, 0xc0000a6240?}, 0x0?})
/home/runner/work/octosql/octosql/outputs/eager/eager.go:39 +0x1e4
github.com/cube2222/octosql/cmd.glob..func4(0x21c9140, {0xc0000a6180, 0x1, 0x3?})
/home/runner/work/octosql/octosql/cmd/root.go:458 +0x3b34
github.com/spf13/cobra.(*Command).execute(0x21c9140, {0xc000066050, 0x3, 0x3})
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:856 +0x67c
github.com/spf13/cobra.(*Command).ExecuteC(0x21c9140)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x3b4
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
github.com/cube2222/octosql/cmd.Execute({0x1b8d868?, 0xc0001dae40?})
/home/runner/work/octosql/octosql/cmd/root.go:471 +0x53
main.main()
/home/runner/work/octosql/octosql/main.go:24 +0xe8