You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/05/09 08:05:27 UTC

[GitHub] [spark] cloud-fan commented on a diff in pull request #36408: [SPARK-39071][SQL][PYTHON] Add unwrap_udt function for unwrapping UserDefinedType columns

cloud-fan commented on code in PR #36408:
URL: https://github.com/apache/spark/pull/36408#discussion_r867741306


##########
python/pyspark/sql/functions.py:
##########
@@ -5318,6 +5318,16 @@ def bucket(numBuckets: Union[Column, int], col: "ColumnOrName") -> Column:
     return _invoke_function("bucket", numBuckets, _to_java_column(col))
 
 
+def unwrap_udt(col):
+    """
+    Unwrap UDT data type column into its underlying struct type

Review Comment:
   the underlying SQL type is not always struct type I think



##########
python/pyspark/sql/functions.py:
##########
@@ -5318,6 +5318,16 @@ def bucket(numBuckets: Union[Column, int], col: "ColumnOrName") -> Column:
     return _invoke_function("bucket", numBuckets, _to_java_column(col))
 
 
+def unwrap_udt(col):
+    """
+    Unwrap UDT data type column into its underlying struct type
+
+        .. versionadded:: 3.1.0

Review Comment:
   3.4.0



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org