You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "angerszhu (Jira)" <ji...@apache.org> on 2026/08/11 02:43:00 UTC
[jira] [Created] (SPARK-58701) Preserve original SQL text in QueryExecution
angerszhu created SPARK-58701:
---------------------------------
Summary: Preserve original SQL text in QueryExecution
Key: SPARK-58701
URL: https://issues.apache.org/jira/browse/SPARK-58701
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 4.0.3, 3.5.8
Reporter: angerszhu
Currently, QueryExecution does not retain the original SQL text when a query is executed through SparkSession.sql. This makes it difficult to review and troubleshoot SQL executions in the Spark UI and REST API.
This improvement preserves the original SQL text only for SQL statements submitted through SparkSession.sql. The text will be displayed in the SQL execution detail page, collapsed by default, and exposed through the SQL REST API only when sqlText=true is specified.
DataFrame API-generated QueryExecution instances will not include SQL text.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org