FailedChanges

Summary

  1. [SPARK-25680][SQL] SQL execution listener shouldn't happen on execution (details)
Commit 9690eba16efe6d25261934d8b73a221972b684f3 by wenchen
[SPARK-25680][SQL] SQL execution listener shouldn't happen on execution
thread
## What changes were proposed in this pull request?
The SQL execution listener framework was created from scratch(see
https://github.com/apache/spark/pull/9078). It didn't leverage what we
already have in the spark listener framework, and one major problem is,
the listener runs on the spark execution thread, which means a bad
listener can block spark's query processing.
This PR re-implements the SQL execution listener framework. Now
`ExecutionListenerManager` is just a normal spark listener, which
watches the `SparkListenerSQLExecutionEnd` events and post events to the
user-provided SQL execution listeners.
## How was this patch tested?
existing tests.
Closes #22674 from cloud-fan/listener.
Authored-by: Wenchen Fan <wenchen@databricks.com> Signed-off-by: Wenchen
Fan <wenchen@databricks.com>
The file was modifiedproject/MimaExcludes.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/execution/SQLExecution.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/Dataset.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/util/DataFrameCallbackSuite.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/SessionStateSuite.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/execution/ui/SQLListener.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/execution/SQLJsonProtocolSuite.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/UDFSuite.scala (diff)
The file was modifiedsql/core/src/test/scala/org/apache/spark/sql/util/ExecutionListenerManagerSuite.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/util/QueryExecutionListener.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/internal/BaseSessionStateBuilder.scala (diff)
The file was modifiedsql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala (diff)
The file was modifiedcore/src/main/scala/org/apache/spark/util/ListenerBus.scala (diff)