Skip to content

Commit 9213bb5

Browse files
authored
chore: remove ScalarValue::raw_data (apache#24548)
## Which issue does this PR close? Part of apache#24542. ## Rationale for this change This API is past DataFusion's [deprecation period](https://datafusion.apache.org/contributor-guide/api-health.html#deprecation-guidelines). ## What changes are included in this PR? Removes `ScalarValue::raw_data`; use `ScalarValue::to_array` instead. ## Are these changes tested? NA ## Are there any user-facing changes? Yes, this is a breaking Rust API change.
1 parent a88b1f5 commit 9213bb5

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • datafusion/common/src/scalar

datafusion/common/src/scalar/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4032,17 +4032,6 @@ impl ScalarValue {
40324032
}
40334033
}
40344034

4035-
#[deprecated(
4036-
since = "46.0.0",
4037-
note = "This function is obsolete. Use `to_array` instead"
4038-
)]
4039-
pub fn raw_data(&self) -> Result<ArrayRef> {
4040-
match self {
4041-
ScalarValue::List(arr) => Ok(arr.to_owned()),
4042-
_ => _internal_err!("ScalarValue is not a list"),
4043-
}
4044-
}
4045-
40464035
/// Converts a value in `array` at `index` into a ScalarValue
40474036
pub fn try_from_array(array: &dyn Array, index: usize) -> Result<Self> {
40484037
// handle NULL value

0 commit comments

Comments
 (0)