-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Minor: Deprecate ScalarValue::raw_data
#15016
Conversation
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 for the contirbution @qazxcdswe123
@@ -2764,15 +2764,6 @@ impl ScalarValue { | |||
Ok(scalars) | |||
} | |||
|
|||
// TODO: Support more types after other ScalarValue is wrapped with ArrayRef | |||
/// Get raw data (inner array) inside ScalarValue | |||
pub fn raw_data(&self) -> Result<ArrayRef> { |
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.
Thank you very much @qazxcdswe123 -- this is a nice find.
Per https://datafusion.apache.org/contributor-guide/api-health.html instead of removing this function, can you please mark it as #[deprecated] instead?
Maybe it would be a good time to go remove any deprecated functions from 41 or earlier 🤔
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 for the remind!
And I think to_array
is what we meant to do here?
datafusion/datafusion/common/src/scalar/mod.rs
Line 1766 in c0d53ad
pub fn to_array(&self) -> Result<ArrayRef> { |
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.
I'll file another PR to cleanup some old deprecation
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.
Thank you @qazxcdswe123
b35e856
to
2fcc908
Compare
ScalarValue::raw_data
Which issue does this PR close?
Rationale for this change
cleanup unused deadcode
What changes are included in this PR?
cleanup unused deadcode
Are these changes tested?
yes
Are there any user-facing changes?
noI just realized this is a
pub fn
so if anyone is using this they may be affected. But this function does not seem to be useful?