Github user LantaoJin commented on a diff in the pull request: https://github.com/apache/spark/pull/20803#discussion_r174662131 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala --- @@ -34,6 +34,16 @@ object SQLExecution { private val executionIdToQueryExecution = new ConcurrentHashMap[Long, QueryExecution]() + private val executionIdToSqlText = new ConcurrentHashMap[Long, String]() + + def setSqlText(sqlText: String): Unit = { + executionIdToSqlText.putIfAbsent(_nextExecutionId.get(), sqlText) + } + + def getSqlText(executionId: Long): String = { + executionIdToSqlText.get(executionId) --- End diff -- It shows nothing
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org