You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "vincev (via GitHub)" <gi...@apache.org> on 2023/07/25 15:04:58 UTC
[GitHub] [arrow-datafusion] vincev commented on a diff in pull request #7088: Make `unnest` consistent with DuckDB/ClickHouse, add option for preserve_nulls, update docs
vincev commented on code in PR #7088:
URL: https://github.com/apache/arrow-datafusion/pull/7088#discussion_r1273692987
##########
datafusion/core/src/dataframe.rs:
##########
@@ -162,9 +164,10 @@ impl DataFrame {
/// # Ok(())
/// # }
/// ```
- pub fn unnest_column(self, column: &str) -> Result<DataFrame> {
+ /// [Unnest]: crate::logical_expr::Unnest
+ pub fn unnest_column(self, column: &str, preserve_nulls: bool) -> Result<DataFrame> {
Review Comment:
`_with_options` looks nice to me too, `DataFrame::unnest` would call `_with_options` preserving nulls so that users will keep getting the same behavior as before that is consistent with other data frame libraries and SQL unnest would use the DuckDB/ClickHouse behavior.
--
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org