Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/21815#discussion_r203679141
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala ---
@@ -69,7 +67,9 @@ abstract class SparkPlan extends QueryPlan[SparkPlan]
with Logging with Serializ
/** Overridden make copy also propagates sqlContext to copied plan. */
override def makeCopy(newArgs: Array[AnyRef]): SparkPlan = {
- SparkSession.setActiveSession(sqlContext.sparkSession)
+ if (sqlContext != null) {
--- End diff --
Because it looks failed ahead. Once we go with `lazy` then it's discovered
later (the exception message in the PR description).
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]