Github user huaxingao commented on a diff in the pull request:
https://github.com/apache/spark/pull/21255#discussion_r187262627
--- Diff: R/pkg/R/functions.R ---
@@ -219,7 +219,8 @@ NULL
#' head(select(tmp3, map_values(tmp3$v3)))
#' head(select(tmp3, element_at(tmp3$v3, "Valiant")))
#' tmp4 <- mutate(df, v4 = create_array(df$mpg, df$cyl), v5 =
create_array(df$hp))
-#' head(select(tmp4, concat(tmp4$v4, tmp4$v5)))}
+#' head(select(tmp4, concat(tmp4$v4, tmp4$v5)))
+#' concat(df$mpg, df$cyl, df$hp)}
--- End diff --
@felixcheung
Yes, the numeric columns work OK with concat. I tested and it has the
following
+--------------------+
|concat(mpg, cyl, hp)|
+--------------------+
| 21.06.0110.0|
| 21.06.0110.0|
Is it OK with you to have the example as ```head(select(tmp, concat(df$mpg,
df$cyl, df$hp)))``` ? Somehow, the test failed with ```head(mutate(df, s1 =
concat(df$mpg, df$cyl, df$hp))```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]