Github user hvanhovell commented on a diff in the pull request: https://github.com/apache/spark/pull/16608#discussion_r96276717 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala --- @@ -2879,6 +2888,15 @@ object functions { def posexplode(e: Column): Column = withExpr { PosExplode(e.expr) } /** + * Creates a new row for each element with position in the given array or map column. + * Unlike posexplode, if the array/map is null or empty then the row (0, null) is produced. + * + * @group collection_funcs + * @since 2.2.0 + */ + def outer_posexplode(e: Column): Column = withExpr { new OuterPosExplode(e.expr) } --- End diff -- Naming: `posexplode_outer`
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org