Github user viirya commented on a diff in the pull request: https://github.com/apache/spark/pull/20288#discussion_r161964383 --- Diff: python/pyspark/sql/context.py --- @@ -147,7 +147,8 @@ def udf(self): :return: :class:`UDFRegistration` """ - return UDFRegistration(self) + from pyspark.sql.session import UDFRegistration --- End diff -- Why we import `UDFRegistration` here again? Isn't it imported at the top?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org