Skip to content

Conversation

@buraksenn
Copy link
Contributor

@buraksenn buraksenn commented Jan 30, 2025

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

@github-actions github-actions bot added the common Related to common crate label Jan 30, 2025
@buraksenn buraksenn marked this pull request as ready for review January 30, 2025 09:29
Copy link
Contributor

@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 @buraksenn

@alamb alamb merged commit 29e9a1c into apache:main Jan 30, 2025
26 checks passed
}

/// Checks whether the given index sequence is monotonically non-decreasing.
pub fn is_sorted<T: Borrow<usize>>(sequence: impl IntoIterator<Item = T>) -> bool {
Copy link
Member

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

Copy link
Contributor

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

Copy link
Member

Choose a reason for hiding this comment

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

Thanks @alamb

Copy link
Contributor

Choose a reason for hiding this comment

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

@andygrove andygrove added the api change Changes the API exposed to users of the crate label Jan 31, 2025
alamb added a commit to alamb/datafusion that referenced this pull request Jan 31, 2025
alamb added a commit that referenced this pull request Jan 31, 2025
* Revert "removed (#14370)"

This reverts commit 29e9a1c.

* Restore/Deprecate is_sorted

* Update datafusion/common/src/utils/mod.rs
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

api change Changes the API exposed to users of the crate common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants