imback82 commented on a change in pull request #30403:
URL: https://github.com/apache/spark/pull/30403#discussion_r528101751



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -416,9 +416,9 @@ case class DropTable(
 }
 
 /**
- * The logical plan for handling non-existing table for DROP TABLE command.
+ * The logical plan for no-op command handling non-existing table.
  */
-case class NoopDropTable(multipartIdentifier: Seq[String]) extends Command
+case class NoopCommand(multipartIdentifier: Seq[String]) extends Command

Review comment:
       Added `commandName`. Now `EXPLAIN EXTENDED DROP TABLE` looks like the 
following:
   ```
   |== Parsed Logical Plan ==
   'DropTable true, false
   +- 'UnresolvedTableOrView [testcat, ns1, ns2, tbl], true
   
   == Analyzed Logical Plan ==
   NoopCommand DROP TABLE, [testcat, ns1, ns2, tbl]
   
   == Optimized Logical Plan ==
   NoopCommand DROP TABLE, [testcat, ns1, ns2, tbl]
   
   == Physical Plan ==
   LocalTableScan <empty>
   ```
   
   Btw, do we want to introduce `NoopCommandExec` for physical plan as well? 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to