HyukjinKwon commented on a change in pull request #32955:
URL: https://github.com/apache/spark/pull/32955#discussion_r660207643



##########
File path: python/pyspark/pandas/spark/functions.py
##########
@@ -32,6 +41,22 @@ def repeat(col: Column, n: Union[int, Column]) -> Column:
     return _call_udf(sc, "repeat", _to_java_column(col), n)
 
 
+def lit(literal: Any) -> Column:
+    """
+    Creates a Column of literal value.
+    """
+    if isinstance(literal, np.int64):

Review comment:
       One workaround might be to define classes that inherit these classes 
e.g.) `class Py4JInteger extends java.lang.Integer` in our codebase, and use it 
for Java references ..
   
   Okay but I am fine as is too about this.




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

Reply via email to