mridulm commented on a change in pull request #35178:
URL: https://github.com/apache/spark/pull/35178#discussion_r784214246
##########
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:
`df.rdd` has tripped me in the past - the fact that it actually ends up
executing the prefix dag was surprising to me !
--
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]