Skip to content

[C++][Python] Binary search for sorted tables. #34153

Description

@coady

Describe the enhancement requested

While I support the decision for tables to not have index columns, I have still found it useful to enable fast binary search when it's known that a table is sorted. Currently I'm using schema.pandas_metadata['index_columns'] to detect sorting. It would be nice if arrow had it own metadata standard, instead of a pandas dependency.

The feature could go through stages:

  1. define and document metadata standard
  2. Table.sort_by adds the metadata
  3. a binary search compute function is added

Component(s)

C++, Python

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions