cloud-fan commented on a change in pull request #30881:
URL: https://github.com/apache/spark/pull/30881#discussion_r548838750
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/v2ResolutionPlans.scala
##########
@@ -97,9 +98,21 @@ case class ResolvedNamespace(catalog: CatalogPlugin,
namespace: Seq[String])
/**
* A plan containing resolved table.
*/
-case class ResolvedTable(catalog: TableCatalog, identifier: Identifier, table:
Table)
- extends LeafNode {
- override def output: Seq[Attribute] = Nil
+case class ResolvedTable(
+ catalog: TableCatalog,
+ identifier: Identifier,
+ table: Table,
+ override val output: Seq[Attribute])
+ extends LeafNode
+
+object ResolvedTable {
+ def create(
+ catalog: TableCatalog,
+ identifier: Identifier,
+ table: Table): ResolvedTable = {
Review comment:
This follows `DataSourceV2Relation.create`
----------------------------------------------------------------
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]