Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/18732#discussion_r141775540 --- Diff: python/pyspark/sql/functions.py --- @@ -2129,7 +2129,8 @@ def _create_udf(f, returnType, vectorized): def _udf(f, returnType=StringType(), vectorized=vectorized): if vectorized: import inspect - if len(inspect.getargspec(f).args) == 0: + argspec = inspect.getargspec(f) + if len(argspec.args) == 0 and argspec.varargs is None: --- End diff -- BTW, let's address [this comment](https://issues.apache.org/jira/browse/SPARK-21190?focusedCommentId=16185166&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16185166) while we are here.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org