Skip to content

Comments

Revert is_sorted removal, deprecate instead#14388

Merged
alamb merged 3 commits intoapache:mainfrom
alamb:alamb/undo_removal
Jan 31, 2025
Merged

Revert is_sorted removal, deprecate instead#14388
alamb merged 3 commits intoapache:mainfrom
alamb:alamb/undo_removal

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Jan 31, 2025

Which issue does this PR close?

Rationale for this change

As @andygrove mentioned https://github.com/apache/datafusion/pull/14370/files#r1937564039 we should deprecate public APIs rather than remove them immediately

What changes are included in this PR?

Are these changes tested?

By the compiler

Are there any user-facing changes?

@github-actions github-actions bot added the common Related to common crate label Jan 31, 2025
@alamb alamb changed the title Alamb/undo removal Revert is_sorted removal, deprecate instead Jan 31, 2025
@alamb alamb marked this pull request as ready for review January 31, 2025 17:05
Copy link
Member

@andygrove andygrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @alamb. The deprecation suggestion Use std::iterator::is_sorted instead is much more helpful than just removing the method.

Copy link
Contributor Author

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andygrove

@alamb alamb merged commit b46e281 into apache:main Jan 31, 2025
25 checks passed
@alamb
Copy link
Contributor Author

alamb commented Jan 31, 2025

Thanks again @andygrove

@alamb alamb deleted the alamb/undo_removal branch January 31, 2025 22:27
cj-zhukov pushed a commit to cj-zhukov/datafusion that referenced this pull request Feb 3, 2025
* Revert "removed (apache#14370)"

This reverts commit 29e9a1c.

* Restore/Deprecate is_sorted

* Update datafusion/common/src/utils/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants