zero323 commented on a change in pull request #31207:
URL: https://github.com/apache/spark/pull/31207#discussion_r566820167



##########
File path: python/pyspark/sql/functions.py
##########
@@ -91,13 +92,58 @@ def lit(col):
     Creates a :class:`Column` of literal value.
 
     .. versionadded:: 1.3.0
+    .. versionchanged:: 3.2.0
+        Added support for complex type literals.
+
+    Parameters
+    ----------
+    col : bool, float, int, str, datetime.date, datetime.datetime, dict, list, 
tuple
+        Object to be converted into :class:`Column`.

Review comment:
       I am not sure if I understand what you mean. We already have matching 
sentence in the description block
   
   
https://github.com/apache/spark/blob/6198e0aca0d30d6bd6ba9f29a0fe60a62016caed/python/pyspark/sql/functions.py#L92
   
   Could you clarify please?




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to