Description
Version
1.29.0
What happened?
panic: interface conversion: ast.Node is *ast.SetOprSelectList, not *ast.SelectStmt
goroutine 9 [running]:
github.com/sqlc-dev/sqlc/internal/engine/dolphin.(*cc).convertSetOprSelectList(0x14000464a00, 0x140001a7a80)
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/engine/dolphin/convert.go:1185 +0x448
github.com/sqlc-dev/sqlc/internal/engine/dolphin.(*cc).convertSetOprStmt(0x14000464a00, 0x140005bcb60)
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/engine/dolphin/convert.go:1228 +0x30
github.com/sqlc-dev/sqlc/internal/engine/dolphin.(*cc).convert(0x14000464a00, {0x1049a7970?, 0x140005bcb60?})
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/engine/dolphin/convert.go:1758 +0xa14
github.com/sqlc-dev/sqlc/internal/engine/dolphin.(*Parser).Parse(0x1400012cfd8, {0x104981940?, 0x140006a9460?})
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/engine/dolphin/parse.go:63 +0x1b0
github.com/sqlc-dev/sqlc/internal/compiler.(*Compiler).parseQueries(0x140007ba008, {{0x0, 0x0, {0x0, 0x0}, 0x0, 0x0, 0x0, 0x0}})
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/compiler/compile.go:75 +0x1e8
github.com/sqlc-dev/sqlc/internal/compiler.(*Compiler).ParseQueries(...)
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/compiler/engine.go:72
github.com/sqlc-dev/sqlc/internal/cmd.parse({_, }, {, }, {, _}, {{0x140007a84c4, 0x5}, {0x140007a84d0, 0x5}, ...}, ...)
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/cmd/generate.go:322 +0x224
github.com/sqlc-dev/sqlc/internal/cmd.processQuerySets.func1()
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/github.com/sqlc-dev/sqlc@v1.29.0/internal/cmd/process.go:107 +0x664
golang.org/x/sync/errgroup.(*Group).Go.func1()
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/golang.org/x/sync@v0.13.0/errgroup/errgroup.go:79 +0x54
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1
/Users/renanbastos/.gvm/pkgsets/go1.23.9/global/pkg/mod/golang.org/x/sync@v0.13.0/errgroup/errgroup.go:76 +0x98
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response