Skip to content

Deprecate parquet::basic::ColumnOrder::sort_order_for_type#10104

Draft
etseidl wants to merge 45 commits into
apache:mainfrom
etseidl:deprecate_sort_order_for_type
Draft

Deprecate parquet::basic::ColumnOrder::sort_order_for_type#10104
etseidl wants to merge 45 commits into
apache:mainfrom
etseidl:deprecate_sort_order_for_type

Conversation

@etseidl

@etseidl etseidl commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

With the addition of new ColumnOrder variants, the public function sort_order_for_type has become unwieldy.

What changes are included in this PR?

Add a deprecation notice to sort_order_for_type, and add a new pub(crate) function get_sort_order_for_type to replace it. The preferred path to obtain a SortOrder is now via ColumnOrder::sort_order.

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

Yes, this deprecates the public sort_order_for_type.

@etseidl etseidl added api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version labels Jun 10, 2026
@github-actions github-actions Bot added the parquet Changes to the parquet crate label Jun 10, 2026
@etseidl

etseidl commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

Note: this PR contains all the changes from #9619, so this can't really be reviewed until that PR is merged.

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

Labels

api-change Changes to the arrow API next-major-release the PR has API changes and it waiting on the next major version parquet Changes to the parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecate the public sort_order_for_type public function

1 participant