Skip to content

Conversation

charithe
Copy link

@charithe charithe commented 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.

Fixes #3507

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]>
Signed-off-by: Charith Ellawala <[email protected]>
@charithe
Copy link
Author

charithe commented Dec 6, 2024

Not sure why the managed-db tests fail and how to go about debugging them 🤔

Signed-off-by: Charith Ellawala <[email protected]>
@StevenACoffman
Copy link
Contributor

@kyleconroy Do you have a chance to review this PR? I believe this works well and would go nicely with some recent improvements.

@akalmyk
Copy link

akalmyk commented Sep 20, 2025

Is there any change to review this PR please? It's been almost a year

@rustik666
Copy link

rustik666 commented Sep 22, 2025

@kyleconroy just a kind reminder, it would be highly appreciated if you will find some time to review this PR.
I just also have the same issue as folks have and it would be great to have it merged.

Thanks a lot in advance! 👍

@StevenACoffman
Copy link
Contributor

@andrewmbenton PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UNNEST can't handle multiple arrays

4 participants