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

    https://github.com/apache/spark/pull/1118#discussion_r13954661
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveStrategies.scala ---
    @@ -81,6 +81,20 @@ private[hive] trait HiveStrategies {
         def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
           case logical.NativeCommand(sql) =>
             NativeCommand(sql, plan.output)(context) :: Nil
    +      case describe: logical.DescribeCommand => {
    +        val resolvedTable = context.executePlan(describe.table).analyzed
    +        resolvedTable match {
    +          case t: MetastoreRelation =>
    +            Seq(DescribeHiveTableCommand(
    +              t, describe.output, describe.isFormatted, 
describe.isExtended)(context))
    +          case o: LogicalPlan =>
    +            if (describe.isFormatted)
    --- End diff --
    
    Maybe for non metastore tables, we can just added some formatted/extended 
information saying they are registered as temporary tables? Then we can get rid 
of the extra lines here ...


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to