alamb opened a new issue, #14164:
URL: https://github.com/apache/datafusion/issues/14164
### Is your feature request related to a problem or challenge?
While working on something else I noticed a few of the doc tests use
deprecated APIs:
```shell
cargo test test -p datafusion-common --doc -- scalar --show-output
```
```
---- datafusion/common/src/scalar/mod.rs -
scalar::ScalarValue::convert_array_to_scalar_vec (line 2594) stdout ----
warning: use of deprecated function
`datafusion_common::utils::array_into_list_array_nullable`: please use
`SingleRowListArrayBuilder` instead
--> datafusion/common/src/scalar/mod.rs:2608:16
|
17 | let list_arr = array_into_list_array_nullable(Arc::new(list_arr));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: use of deprecated function
`datafusion_common::utils::array_into_list_array_nullable`: please use
`SingleRowListArrayBuilder` instead
--> datafusion/common/src/scalar/mod.rs:2599:31
|
8 | use datafusion_common::utils::array_into_list_array_nullable;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 2 warnings emitted
```
### Describe the solution you'd like
Update the examples to use the non deprecated APIs
### Describe alternatives you've considered
_No response_
### Additional context
I think this is a nice self contained issue that would be a nice
introduction to the DataFusion codebase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]