Kimahriman commented on code in PR #37770:
URL: https://github.com/apache/spark/pull/37770#discussion_r962479783
##########
python/pyspark/sql/functions.py:
##########
@@ -5956,6 +5978,33 @@ def posexplode_outer(col: "ColumnOrName") -> Column:
return _invoke_function_over_columns("posexplode_outer", col)
+def inline_outer(col: "ColumnOrName") -> Column:
+ """
+ Explodes an array of structs into a table.
+ Unlike inline, if the array is null or empty then null is produced for
each nested column.
+
+ .. versionadded:: 3.4.0
+
+ Examples
+ --------
+ >>> from pyspark.sql import Row
+ >>> from pyspark.sql.functions import inline_outer
Review Comment:
Ah ok. I saw all the PRs about self contained examples and thought that
meant copy and pasting the code should run as is. Looked and some of those
examples though and saw it was mostly adding those two sections you mentioned,
will do
--
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]