GitHub user rdblue opened a pull request:
https://github.com/apache/spark/pull/17540
[SPARK-20213][SQL][UI] Fix DataFrameWriter operations in SQL UI tab.
## What changes were proposed in this pull request?
Wraps `DataFrameWriter` operations in `SQLExecution.withNewExecutionId` so
that `SparkListenerSQLExecutionStart` and `SparkListenerSQLExecutionEnd` are
sent and the query shows up in the SQL tab of the UI.
## How was this patch tested?
Tested by hand that `insertInto` results in queries in the SQL tab.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rdblue/spark SPARK-20213-fix-sql-tab
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17540.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17540
----
commit f9342b5fea4fd3dbe32c12930f96aa9af38c386b
Author: Ryan Blue <[email protected]>
Date: 2017-04-05T17:28:19Z
SPARK-20213: Fix DataFrameWriter operations in SQL UI tab.
Not wrapping the execution started by DataFrameWriter in
SQLExecution.withNewExecutionId causes those executions to not show up
in the SQL UI tab because the SparkListenerSQLExecutionStart and
SparkListenerSQLExecutionEnd messages are never sent.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]