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

    https://github.com/apache/spark/pull/14207#discussion_r71456601
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala ---
    @@ -518,6 +510,19 @@ case class DescribeTableCommand(table: 
TableIdentifier, isExtended: Boolean, isF
         }
       }
     
    +  private def describeSchema(
    +      tableDesc: CatalogTable,
    +      buffer: ArrayBuffer[Row]): Unit = {
    +    if (DDLUtils.isDatasourceTable(tableDesc)) {
    +      DDLUtils.getSchemaFromTableProperties(tableDesc) match {
    --- End diff --
    
    For all types of data source tables, we store the schema in the table 
properties. Thus, we should not return None; unless the table properties are 
modified by users using the `Alter Table` command. 
    
    Sorry, forgot to update the message. 


---
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