You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/01/20 05:08:38 UTC
[GitHub] [spark] beliefer commented on a change in pull request #31245: [SPARK-34157][SQL] Unify output of SHOW TABLES and pass output attributes properly
beliefer commented on a change in pull request #31245:
URL: https://github.com/apache/spark/pull/31245#discussion_r560682574
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -835,21 +835,11 @@ case class DescribeColumnCommand(
case class ShowTablesCommand(
databaseName: Option[String],
tableIdentifierPattern: Option[String],
+ override val output: Seq[Attribute] = Seq.empty,
isExtended: Boolean = false,
partitionSpec: Option[TablePartitionSpec] = None) extends RunnableCommand {
- // The result of SHOW TABLES/SHOW TABLE has three basic columns: database, tableName and
- // isTemporary. If `isExtended` is true, append column `information` to the output columns.
- override val output: Seq[Attribute] = {
- val tableExtendedInfo = if (isExtended) {
- AttributeReference("information", StringType, nullable = false)() :: Nil
- } else {
Review comment:
The output should be delivered by logical nodes(ShowTables and ShowTableExtended) in normal.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org