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



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -315,6 +315,17 @@ case class DescribeRelation(
   override def output: Seq[Attribute] = 
DescribeTableSchema.describeTableAttributes()
 }
 
+/**
+ * The logical plan of the DESCRIBE relation_name col_name command that works 
for v2 tables.
+ */
+case class DescribeColumn(
+    relation: LogicalPlan,
+    colNameParts: Seq[String],

Review comment:
       > Does Hive support qualified column names in `DESCRIBE`?
   
   Hive [doesn't support qualified 
name](https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Describe)
 for column names. For example:
   
   ```
   DESCRIBE hivesampletable default.hivesampletable.clientid
   
   java.sql.SQLException: Error while processing statement: FAILED: Execution 
Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. cannot find 
field default from [0:clientid, 1:querytime, 2:market, 3:deviceplatform, 
4:devicemake, 5:devicemodel, 6:state, 7:country, 8:querydwelltime, 9:sessionid, 
10:sessionpagevieworder]
   ```
   
   
   




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