Github user icexelloss commented on a diff in the pull request: https://github.com/apache/spark/pull/18732#discussion_r141955128 --- 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 -- Fixed
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org