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: [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]