Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/4249#discussion_r24126304
--- Diff: sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala ---
@@ -55,13 +55,11 @@ private[hive] case object NativePlaceholder extends
Command
*/
case class DescribeCommand(
table: LogicalPlan,
- isExtended: Boolean) extends Command {
- override def output = Seq(
- // Column names are based on Hive.
- AttributeReference("col_name", StringType, nullable = false)(),
- AttributeReference("data_type", StringType, nullable = false)(),
- AttributeReference("comment", StringType, nullable = false)())
-}
+ override val output: Seq[Attribute] =
+ Seq(AttributeReference("col_name", StringType, nullable = false)(),
+ AttributeReference("data_type", StringType, nullable = false)(),
+ AttributeReference("comment", StringType, nullable = false)()),
+ isExtended: Boolean) extends Command
--- End diff --
Hmm, i guess that is okay for leaf nodes since they will never be copied...
---
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]