Skip to content

ArrayDataget_slice_memory_size or similar #3407

Closed

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

As part of implementing an Arrow flight client, we have observed that there is a maximum message size for gRPC messages, and thus while encoding the Arrow flight client has a way to limit the size of the messages (see #3391)

However, apparently there is currently no way to get the memory size used by a sliced (aka the array only points to a portion of the overall underlying allocation), which will result in overly conservative re-splitting in the arrow-flight client

Describe the solution you'd like
As suggested by @tustvold on #3391 (comment)

It is worth noting that this method does not take into account already sliced arrays, we likely need to add a get_slice_memory_size or something to ArrayData to provide this, it should be relatively straightforward

Describe alternatives you've considered
We could leave the users of the client to worry about batch splitting

Additional context

Activity

  1. added
    enhancement
    on Dec 29, 2022
  2. askoa commented on Jan 9, 2023

    @askoa
    Contributor

    I'll give this a try.

  3. alamb commented on Jan 9, 2023

    @alamb
    ContributorAuthor

    Thank you @askoa

  4. added
    arrow
    on Jan 13, 2023
  5. tustvold commented on Jan 13, 2023

    @tustvold
    Contributor

    label_issue.py automatically added labels {'arrow'} from #3501

  6. added
    arrow-flight
    on Jan 13, 2023
  7. tustvold commented on Jan 13, 2023

    @tustvold
    Contributor

    label_issue.py automatically added labels {'arrow-flight'} from #3391

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

    arrowarrow-flightenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions