Skip to content

New functions for working with arrays #6119

Closed

Description

@izveigor

Is your feature request related to a problem or challenge?

Arrow-DataFusion can support creating an array of a certain data type (make_array), but there are no functions to work with them.
In my opinion, the documentation of the database PostgreSQL can serve as a reference for working on arrays.

Array functions:

  • array_append
  • array_concat
  • array_ndims
  • array_dims
  • array_fill
  • array_length
  • array_position
  • array_positions
  • array_prepend
  • array_remove
  • array_replace
  • array_to_string
  • cardinality
  • string_to_array

Describe the solution you'd like

Series of PR, active discussion of features.

Describe alternatives you've considered

The significance of some features can be disproven as a result of conversations.

Additional context

Sources:
The array documentation: PostgreSQL
#6073
#6075

Activity

  1. mustafaakin commented on May 11, 2023

    @mustafaakin

    We have a lot of nested data at Resmo and currently using PartiQL but we were exploring to switch to datafusion. We make use a lot of unnest.

  2. izveigor commented on May 11, 2023

    @izveigor
    ContributorAuthor

    Hello, @mustafaakin!
    I think I can create PR with the implementation unnest soon

  3. alamb commented on Jun 1, 2023

    @alamb
    Contributor

    Thank you @izveigor -- I have added this ticket to the tracking epic for working with lists in DataFusion: #2326

  4. bubbajoe commented on Jun 7, 2023

    @bubbajoe

    @alamb Isn't there still some functions/operators that need to be finished (or issued created)?

  5. reopened this on Jun 8, 2023
  6. alamb commented on Jun 8, 2023

    @alamb
    Contributor

    I agree -- thanks @bubbajoe . @izveigor FYI I reopened this one. Perhaps it would be good to file a follow on ticket with what is not yet implemented and then we can close this ticket

  7. changed the title [-]New functions and operations for working with arrays[/-] [+]New functions for working with arrays[/+] on Jun 8, 2023
  8. izveigor commented on Jun 8, 2023

    @izveigor
    ContributorAuthor

    @alamb @bubbajoe Yes, I created two additional tickets for the remaining cases.
    So, I think I can close this ticket now.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions