We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d5aa4 commit f456207Copy full SHA for f456207
sql/core/src/main/scala/org/apache/spark/sql/SparkSession.scala
@@ -600,6 +600,7 @@ class SparkSession private(
600
* @since 2.0.0
601
*/
602
def sql(sqlText: String): DataFrame = {
603
+ SparkSession.setActiveSession(this)
604
val tracker = new QueryPlanningTracker
605
val plan = tracker.measurePhase(QueryPlanningTracker.PARSING) {
606
sessionState.sqlParser.parsePlan(sqlText)
0 commit comments