cloud-fan commented on a change in pull request #31378:
URL: https://github.com/apache/spark/pull/31378#discussion_r567840910
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -895,16 +895,10 @@ case class ShowTablesCommand(
* SHOW TBLPROPERTIES table_name[('propertyKey')];
* }}}
*/
-case class ShowTablePropertiesCommand(table: TableIdentifier, propertyKey:
Option[String])
- extends RunnableCommand {
-
- override val output: Seq[Attribute] = {
- val schema = AttributeReference("value", StringType, nullable = false)()
:: Nil
- propertyKey match {
- case None => AttributeReference("key", StringType, nullable = false)()
:: schema
- case _ => schema
- }
- }
+case class ShowTablePropertiesCommand(
+ table: TableIdentifier,
+ propertyKey: Option[String],
+ override val output: Seq[Attribute]) extends RunnableCommand {
Review comment:
do we need the `override val`?
----------------------------------------------------------------
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]