Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UNNEST can't handle multiple arrays #3507

Open
danthegoodman1 opened this issue Jul 26, 2024 · 0 comments · May be fixed by #3738
Open

UNNEST can't handle multiple arrays #3507

danthegoodman1 opened this issue Jul 26, 2024 · 0 comments · May be fixed by #3738
Labels
bug Something isn't working

Comments

@danthegoodman1
Copy link

Version

1.26.0

What happened?

See linked playground. If you make it a single array it works fine.

Supported since postgres 9.4

Relevant log output

function unnest(unknown, unknown, unknown) does not exist

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

https://play.sqlc.dev/p/177bd0ee17908bc7f1a1e1fe4302562aa99013a7f3a6e3d0b6d92a50bb7d8fd3

What operating system are you using?

No response

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@danthegoodman1 danthegoodman1 added bug Something isn't working triage New issues that hasn't been reviewed labels Jul 26, 2024
@kyleconroy kyleconroy removed the triage New issues that hasn't been reviewed label Aug 5, 2024
charithe added a commit to charithe/sqlc that referenced this issue Dec 6, 2024
Currently, `sqlc` errors out when it encounters the multi-argument
version of the `UNNEST` function. This is because the function is not
marked as variadic. Instead, the argument type is defined as
[`anymultirange`](https://www.postgresql.org/docs/current/extend-type-system.html#EXTEND-TYPES-POLYMORPHIC).

Fixes sqlc-dev#3507

Signed-off-by: Charith Ellawala <[email protected]>
@charithe charithe linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants