Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/20288#discussion_r161965278 --- Diff: python/pyspark/sql/context.py --- @@ -624,6 +536,9 @@ def _test(): globs['os'] = os globs['sc'] = sc globs['sqlContext'] = SQLContext(sc) + # 'spark' alias is a small hack for reusing doctests. Please see the reassignment + # of docstrings above. + globs['spark'] = globs['sqlContext'] --- End diff -- shall we do `globs['spark'] = globs['sqlContext'].sparkSession`?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org