This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new da42933230 Deprecate `raw_data` method in ScalarValue (#15016)
da42933230 is described below
commit da4293323032e2408c9e3b9b28e644a96aea0f13
Author: YuNing Chen <[email protected]>
AuthorDate: Thu Mar 6 19:48:43 2025 +0800
Deprecate `raw_data` method in ScalarValue (#15016)
---
datafusion/common/src/scalar/mod.rs | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/datafusion/common/src/scalar/mod.rs
b/datafusion/common/src/scalar/mod.rs
index 9059ae07e6..367f359ae7 100644
--- a/datafusion/common/src/scalar/mod.rs
+++ b/datafusion/common/src/scalar/mod.rs
@@ -2764,8 +2764,10 @@ impl ScalarValue {
Ok(scalars)
}
- // TODO: Support more types after other ScalarValue is wrapped with
ArrayRef
- /// Get raw data (inner array) inside ScalarValue
+ #[deprecated(
+ since = "46.0.0",
+ note = "This function is obsolete. Use `to_array` instead"
+ )]
pub fn raw_data(&self) -> Result<ArrayRef> {
match self {
ScalarValue::List(arr) => Ok(arr.to_owned()),
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]