alamb commented on code in PR #26934:
URL: https://github.com/apache/datafusion/pull/26934#discussion_r4699242120
##########
datafusion-examples/examples/dataframe/dataframe.rs:
##########
@@ -182,6 +184,43 @@ async fn read_memory_macro() -> Result<()> {
Ok(())
}
+/// Use the DataFrame API to:
+/// 1. Create a DataFrame from Arrow arrays in a new session
+/// 2. Create a DataFrame from Arrow arrays in the session of a
`SessionContext`
+/// 3. Create a DataFrame from Arrow arrays in the session of another DataFrame
+async fn read_memory_arrays(ctx: &SessionContext) -> Result<()> {
Review Comment:
almost the same code is repeated in the docstrings and user guide. Is there
a reason to *also* add it to the examples?
##########
docs/source/library-user-guide/upgrading/56.0.0.md:
##########
@@ -732,6 +732,40 @@ Most existing call sites using `Vec` require no changes.
Code that relies on
the exact non-generic function signature of `DataFrame::from_columns` may need
to be updated to account for the new generic API.
+### `DataFrame::from_columns` is deprecated in favor of
`DataFrame::from_arrays`
Review Comment:
I don't think this is necessary -- the deprecation note is enough and the
examples are quite clear (and repetitive)
--
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]