imback82 commented on a change in pull request #27243: [SPARK-30535][SQL]
Migrate ALTER TABLE commands to the new framework
URL: https://github.com/apache/spark/pull/27243#discussion_r368395423
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/v2ResolutionPlans.scala
##########
@@ -63,14 +73,14 @@ case class ResolvedNamespace(catalog: SupportsNamespaces,
namespace: Seq[String]
*/
case class ResolvedTable(catalog: TableCatalog, identifier: Identifier, table:
Table)
extends LeafNode {
- override def output: Seq[Attribute] = Nil
+ override lazy val output: Seq[Attribute] = table.schema().toAttributes
Review comment:
Thanks for catching it. Reverted.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]