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

add 'unnest' table function #9324

Closed
l1t1 opened this issue Feb 23, 2024 · 5 comments · Fixed by #9355
Closed

add 'unnest' table function #9324

l1t1 opened this issue Feb 23, 2024 · 5 comments · Fixed by #9355
Assignees
Labels
enhancement New feature or request

Comments

@l1t1
Copy link

l1t1 commented Feb 23, 2024

Is your feature request related to a problem or challenge?

the 'unnest' table function reads an array or list, and out put a table

Describe the solution you'd like

the result is same as that of postgresql

select unnest(ARRAY[1,2,3]);
 unnest
--------
      1
      2
      3

select * from unnest(ARRAY[1,2,3]);
 unnest
--------
      1
      2
      3

Describe alternatives you've considered

No response

Additional context

No response

@l1t1 l1t1 added the enhancement New feature or request label Feb 23, 2024
@jayzhan211
Copy link
Contributor

I think it is duplicated issue from #6555
btw, first example is implemented

@l1t1
Copy link
Author

l1t1 commented Feb 23, 2024

when will the function available?

@jayzhan211
Copy link
Contributor

first one should be available now.
second one it not planned

@jonahgao
Copy link
Member

take

@jonahgao
Copy link
Member

Unnest seems to be recognized as a TableFactor in sqlparser-rs, and implementing support for it in DataFusion might be straightforward.

I'll work on this issue after PR #9342.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants