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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to