Skip to content

Conversation

dusantism-db
Copy link
Contributor

@dusantism-db dusantism-db commented Sep 9, 2025

What changes were proposed in this pull request?

This PR introduces support for SQL Scripts in the Spark UI. A "SQL Script ID" sortable column is introduced in the All Executions table in SQL / Dataframe tab of Spark UI. The column is only shown if there is at least one statement which has been executed by a script. Also, it introduces a SQL Script ID label in the single SQL Execution page, which is only present if the SQL Execution is executed by a script.

A sqlScriptId is introduced for this purpose. It is an identifier which is unique per script execution. All statements within a single script execution will have the same sqlScriptId.

Why are the changes needed?

Does this PR introduce any user-facing change?

Yes, Spark UI is expanded to show SQL Scripting information.

How was this patch tested?

Unit test added for script id.
UI changes manually - screenshots below.

SQL / Dataframe tab before running script (unchanged):
image

SQL / Dataframe tab after running two scripts with two statements each:

image

Single execution page:
image

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Contributor Author

@dusantism-db dusantism-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants