[
https://issues.apache.org/jira/browse/SPARK-51818?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun updated SPARK-51818:
----------------------------------
Parent: SPARK-51166
Issue Type: Sub-task (was: Bug)
> An AnalyzePlanRequest should not eagerly execute analyzed SQL commands
> ----------------------------------------------------------------------
>
> Key: SPARK-51818
> URL: https://issues.apache.org/jira/browse/SPARK-51818
> Project: Spark
> Issue Type: Sub-task
> Components: Connect
> Affects Versions: 3.5.5, 4.1.0, 4.0.0
> Reporter: Robert Dillitz
> Assignee: Robert Dillitz
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Sending AnalyzePlanRequests.Schema requests to get the schema of SQL commands
> like [SHOW PARTITIONS
> |https://spark.apache.org/docs/3.5.1/sql-ref-syntax-aux-show-partitions.html]should
> not eagerly execute the command.
> {code:java}
> root {
> common {
> plan_id: 42
> }
> sql {
> query: "SHOW PARTITIONS main.default.partitioned_table"
> }
> }{code}
> The current cause for this is that we get the schema through [Dataset.ofRows
> |https://github.com/apache/spark/blob/master/sql/connect/server/src/main/scala/org/apache/spark/sql/connect/service/SparkConnectAnalyzeHandler.scala#L67]in
> the SparkConnectAnalyzeHandler, which does not set the
> [CommandExecutionMode.SKIP.|https://github.com/apache/spark/blob/2ba156096e83adf7b0b2f5c38453d6fd37d95ded/sql/core/src/main/scala/org/apache/spark/sql/execution/QueryExecution.scala#L490]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]