MaxGekk commented on a change in pull request #31676:
URL: https://github.com/apache/spark/pull/31676#discussion_r584484615



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -347,7 +347,7 @@ case class DescribeRelation(
     partitionSpec: TablePartitionSpec,
     isExtended: Boolean) extends Command {
   override def children: Seq[LogicalPlan] = Seq(relation)
-  override def output: Seq[Attribute] = 
DescribeCommandSchema.describeTableAttributes()
+  override val output: Seq[Attribute] = 
DescribeCommandSchema.describeTableAttributes()

Review comment:
       > Then it's more stable and the output won't change after 
copy/transformation.
   
   ok. `val output` will be re-initialized per every `.copy()`. I will make it 
as a case class parameter.




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