dongjoon-hyun commented on a change in pull request #27897: [SPARK-31113][SQL]
Add SHOW VIEWS command
URL: https://github.com/apache/spark/pull/27897#discussion_r393932044
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala
##########
@@ -869,14 +869,14 @@ case class ShowTablesCommand(
}
override def run(sparkSession: SparkSession): Seq[Row] = {
- // Since we need to return a Seq of rows, we will call getTables directly
+ // Since we need to return a Seq of rows, we will call listTables directly
// instead of calling tables in sparkSession.
val catalog = sparkSession.sessionState.catalog
val db = databaseName.getOrElse(catalog.getCurrentDatabase)
if (partitionSpec.isEmpty) {
// Show the information of tables.
- val tables =
- tableIdentifierPattern.map(catalog.listTables(db,
_)).getOrElse(catalog.listTables(db))
+ val tables = tableIdentifierPattern.map(catalog.listTables(db, _))
+ .getOrElse(catalog.listTables(db))
Review comment:
Please revert this change on this file, @Eric5553 .
----------------------------------------------------------------
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]