Skip to content

Commit 2801c44

Browse files
qazxcdswe123danila-b
authored andcommitted
Deprecate raw_data method in ScalarValue (apache#15016)
1 parent af16053 commit 2801c44

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

  • datafusion/common/src/scalar

datafusion/common/src/scalar/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,8 +2764,10 @@ impl ScalarValue {
27642764
Ok(scalars)
27652765
}
27662766

2767-
// TODO: Support more types after other ScalarValue is wrapped with ArrayRef
2768-
/// Get raw data (inner array) inside ScalarValue
2767+
#[deprecated(
2768+
since = "46.0.0",
2769+
note = "This function is obsolete. Use `to_array` instead"
2770+
)]
27692771
pub fn raw_data(&self) -> Result<ArrayRef> {
27702772
match self {
27712773
ScalarValue::List(arr) => Ok(arr.to_owned()),

0 commit comments

Comments
 (0)