yaooqinn commented on a change in pull request #35178:
URL: https://github.com/apache/spark/pull/35178#discussion_r784533731
##########
File path:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/SparkExecuteStatementOperation.scala
##########
@@ -288,10 +293,12 @@ private[hive] class SparkExecuteStatementOperation(
}
sqlContext.sparkContext.setJobGroup(statementId, substitutorStatement,
forceCancel)
- result = sqlContext.sql(statement)
- logDebug(result.queryExecution.toString())
+ val df = sqlContext.sql(statement)
+ logDebug(df.queryExecution.toString())
HiveThriftServer2.eventManager.onStatementParsed(statementId,
- result.queryExecution.toString())
+ df.queryExecution.toString())
+ rdd = df.rdd
Review comment:
the changes here cannot trigger the eager clean for all cases, for
example, CTAS, where the `S` contains a shuffle, will not be able to be
cleared. The possible and proper place may be SparkPlan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]