From bedd63b514b0cbf41a986ba38682325088371fc2 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sat, 28 Nov 2020 18:12:28 +0300 Subject: [PATCH 1/3] Remove `getTables()` from `r.SQLUtils` --- .../main/scala/org/apache/spark/sql/api/r/SQLUtils.scala | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala b/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala index 693be99d47495..66a0ef6d75d37 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala @@ -216,15 +216,6 @@ private[sql] object SQLUtils extends Logging { } } - def getTables(sparkSession: SparkSession, databaseName: String): DataFrame = { - databaseName match { - case n: String if n != null && n.trim.nonEmpty => - Dataset.ofRows(sparkSession, ShowTablesCommand(Some(n), None)) - case _ => - Dataset.ofRows(sparkSession, ShowTablesCommand(None, None)) - } - } - def getTableNames(sparkSession: SparkSession, databaseName: String): Array[String] = { val db = databaseName match { case _ if databaseName != null && databaseName.trim.nonEmpty => From cc3112d629e6d282d3f2cbe5efa0f6880f88936c Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sat, 28 Nov 2020 19:39:34 +0300 Subject: [PATCH 2/3] Remove an unused import --- .../src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala b/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala index 66a0ef6d75d37..1d1358487abcb 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/api/r/SQLUtils.scala @@ -33,7 +33,6 @@ import org.apache.spark.sql._ import org.apache.spark.sql.catalyst.expressions.{ExprUtils, GenericRowWithSchema} import org.apache.spark.sql.catalyst.parser.CatalystSqlParser import org.apache.spark.sql.execution.arrow.ArrowConverters -import org.apache.spark.sql.execution.command.ShowTablesCommand import org.apache.spark.sql.internal.StaticSQLConf.CATALOG_IMPLEMENTATION import org.apache.spark.sql.types._ From 7693c04044e066338cd3a78c5f0e881b18634852 Mon Sep 17 00:00:00 2001 From: Max Gekk Date: Sat, 28 Nov 2020 22:19:18 +0300 Subject: [PATCH 3/3] Trigger build