Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17270#discussion_r106313999
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---
    @@ -910,7 +910,7 @@ case class ShowCreateTableCommand(table: 
TableIdentifier) extends RunnableComman
           }
         }
     
    -    if (metadata.tableType == EXTERNAL) {
    +    if (metadata.tableType == EXTERNAL || metadata.tableType == MANAGED) {
    --- End diff --
    
    > SHOW CREATE TABLE shows the CREATE TABLE statement that creates a given 
table, or the CREATE VIEW statement that creates a given view.
    
    If we add the location clause for managed tables, CREATE TABLE will create 
an external table instead of a managed table. That is not what we want. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to