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

Support empty array #6561

Closed
izveigor opened this issue Jun 6, 2023 · 2 comments · Fixed by #6593
Closed

Support empty array #6561

izveigor opened this issue Jun 6, 2023 · 2 comments · Fixed by #6593
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@izveigor
Copy link
Contributor

izveigor commented Jun 6, 2023

Is your feature request related to a problem or challenge?

Follow on to #6384
The basic idea is to create an empty array using the function array_make when it takes empty arguments. Also, all array functions must accept an empty array and work with it.

Describe the solution you'd like

Examples:

select make_array();
----
[]
select array_concat(trim_array(make_array(1, 2, 3), 3), make_array(4, 5), make_array())
----
[4, 5]

Describe alternatives you've considered

If in the course of conversations it turns out that the feature is useless.

Additional context

Simillar Issues:
#6119
#6075.

@izveigor izveigor added the enhancement New feature or request label Jun 6, 2023
@alamb alamb added the good first issue Good for newcomers label Jun 6, 2023
@alamb
Copy link
Contributor

alamb commented Jun 6, 2023

I think this is a good first issue for someone to help with as it is relatively localized

@parkma99
Copy link
Contributor

parkma99 commented Jun 7, 2023

I'd like to work on this . Is anyone already preparing a PR?

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

Successfully merging a pull request may close this issue.

3 participants