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

Array functions should treat an array as an element #6985

Closed
5 tasks done
izveigor opened this issue Jul 16, 2023 · 0 comments · Fixed by #6986
Closed
5 tasks done

Array functions should treat an array as an element #6985

izveigor opened this issue Jul 16, 2023 · 0 comments · Fixed by #6986
Labels
enhancement New feature or request

Comments

@izveigor
Copy link
Contributor

izveigor commented Jul 16, 2023

Is your feature request related to a problem or challenge?

I think it would be nice to use array as element in all array functions (not only scalar values).
The main reason is to make it easier for the user to work with multidimensional arrays.
For example, if we want to append first dimension array in second dimension array or find a position in nested array.

Here are the full list of current array functions, which should be upgradeable:

  • array_append
  • array_prepend
  • array_position
  • array_positions
  • array_concat (column support)

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

ClickHouse and DuckDB support that feature (See their documentations: https://duckdb.org/docs/sql/functions/nested and https://clickhouse.com/docs/en/sql-reference/functions/array-functions).

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.

1 participant