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



##########
File path: python/pyspark/sql/functions.py
##########
@@ -4703,7 +4741,8 @@ def array_repeat(col: "ColumnOrName", count: 
Union[Column, int]) -> Column:
     assert sc is not None and sc._jvm is not None
     return Column(
         sc._jvm.functions.array_repeat(
-            _to_java_column(col), _to_java_column(count) if isinstance(count, 
Column) else count
+            _to_java_column(col),
+            count if isinstance(count, int) else _to_java_column(count),

Review comment:
       I'd prefer to either leave this one for the time being, or use the same 
approach as for the previous PR (`lit`).




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