Skip to content

Conversation

@Jefffrey
Copy link
Contributor

Which issue does this PR close?

N/A

Rationale for this change

Removing dead code and remove functions from public API.

What changes are included in this PR?

See comments.

Are these changes tested?

Existing tests.

Are there any user-facing changes?

Yes, some functions removed from public API, but they likely weren't intended to be in our public API.

@github-actions github-actions bot added the functions Changes to functions implementation label Jan 28, 2026
Comment on lines -40 to -53
macro_rules! define_digest_function {
($NAME: ident, $METHOD: ident, $DOC: expr) => {
#[doc = $DOC]
pub fn $NAME(args: &[ColumnarValue]) -> Result<ColumnarValue> {
let [data] = take_function_args(&DigestAlgorithm::$METHOD.to_string(), args)?;
digest_process(data, DigestAlgorithm::$METHOD)
}
};
}
define_digest_function!(
sha224,
Sha224,
"computes sha224 hash digest of the given input"
);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are unused but part of our public API; I don't see a good reason to have them exposed so removed them


#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum DigestAlgorithm {
pub(crate) enum DigestAlgorithm {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed from public API

}

/// computes md5 hash digest of the given input
pub fn md5(args: &[ColumnarValue]) -> Result<ColumnarValue> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed from public API, also moved to md5 file which is the only place its used

}

pub fn digest_process(
pub(crate) fn digest_process(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed from public API

@Jefffrey Jefffrey marked this pull request as ready for review January 28, 2026 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant