HyukjinKwon commented on code in PR #37770:
URL: https://github.com/apache/spark/pull/37770#discussion_r962464685
##########
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:
you can remove this since we're in this package, and assume that users know
how to import this.
##########
python/pyspark/sql/functions.py:
##########
@@ -5883,6 +5883,28 @@ def posexplode(col: "ColumnOrName") -> Column:
return _invoke_function_over_columns("posexplode", col)
+def inline(col: "ColumnOrName") -> Column:
+ """
+ Explodes an array of structs into a table.
+
+ .. versionadded:: 3.4.0
+
+ Examples
+ --------
+ >>> from pyspark.sql import Row
+ >>> from pyspark.sql.functions import inline
Review Comment:
ditto
--
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]