You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by al...@apache.org on 2025/01/18 12:34:33 UTC
(datafusion) branch main updated: Fix doctests in ScalarValue (#14164) (#14178)
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 57eb17fd4d Fix doctests in ScalarValue (#14164) (#14178)
57eb17fd4d is described below
commit 57eb17fd4dd594549ae32a9e1ecbde0f551dce46
Author: Sergey Zhukov <62...@users.noreply.github.com>
AuthorDate: Sat Jan 18 15:34:27 2025 +0300
Fix doctests in ScalarValue (#14164) (#14178)
Co-authored-by: Sergey Zhukov <sz...@aligntech.com>
---
datafusion/common/src/scalar/mod.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/datafusion/common/src/scalar/mod.rs b/datafusion/common/src/scalar/mod.rs
index de14d3a010..fca7294d87 100644
--- a/datafusion/common/src/scalar/mod.rs
+++ b/datafusion/common/src/scalar/mod.rs
@@ -2595,7 +2595,7 @@ impl ScalarValue {
/// use datafusion_common::ScalarValue;
/// use arrow::array::ListArray;
/// use arrow::datatypes::{DataType, Int32Type};
- /// use datafusion_common::utils::array_into_list_array_nullable;
+ /// use datafusion_common::utils::SingleRowListArrayBuilder;
/// use std::sync::Arc;
///
/// let list_arr = ListArray::from_iter_primitive::<Int32Type, _, _>(vec![
@@ -2604,7 +2604,7 @@ impl ScalarValue {
/// ]);
///
/// // Wrap into another layer of list, we got nested array as [ [[1,2,3], [4,5]] ]
- /// let list_arr = array_into_list_array_nullable(Arc::new(list_arr));
+ /// let list_arr = SingleRowListArrayBuilder::new(Arc::new(list_arr)).build_list_array();
///
/// // Convert the array into Scalar Values for each row, we got 1D arrays in this example
/// let scalar_vec = ScalarValue::convert_array_to_scalar_vec(&list_arr).unwrap();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org