-
Notifications
You must be signed in to change notification settings - Fork 1.8k
minor: remove unused is_sorted method from utils #14370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
alamb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @buraksenn
| } | ||
|
|
||
| /// Checks whether the given index sequence is monotonically non-decreasing. | ||
| pub fn is_sorted<T: Borrow<usize>>(sequence: impl IntoIterator<Item = T>) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alamb @buraksenn Why are we removing a public API method without deprecating it first?
https://docs.rs/datafusion-common/latest/datafusion_common/utils/fn.is_sorted.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry -- that was a mistake. I can make a PR to put it back in w/ deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alamb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This reverts commit 29e9a1c.
* Revert "removed (apache#14370)" This reverts commit 29e9a1c. * Restore/Deprecate is_sorted * Update datafusion/common/src/utils/mod.rs
Which issue does this PR close?
#.
Rationale for this change
While checking TODOs I saw this function since is_sorted is graduated from nightly and used in the repo this unused method can be deleted
What changes are included in this PR?
Deletion of unused function
Are these changes tested?
There is nothing to test since this is deletion of a unused util function
Are there any user-facing changes?
No