Skip to content

Commit 9afd729

Browse files
committed
Revert Debugging code.
1 parent 8bf2a27 commit 9afd729

3 files changed

Lines changed: 1 addition & 15 deletions

File tree

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveExplainSuite.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class HiveExplainSuite extends QueryTest with SQLTestUtils with TestHiveSingleto
4141
}
4242

4343
test("explain create table command") {
44-
sql("show tables").show()
4544
checkExistence(sql("explain create table temp__b as select * from src limit 2"), true,
4645
"== Physical Plan ==",
4746
"InsertIntoHiveTable",

sql/hive/src/test/scala/org/apache/spark/sql/hive/parquetSuites.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ class ParquetMetastoreSuite extends ParquetPartitioningTest {
452452
""".stripMargin)
453453

454454
var tableIdentifier = catalog.QualifiedTableName("default", "test_insert_parquet")
455-
assert(catalog.client.currentDatabase === "default", "Current database should be 'default'.")
456455

457456
// First, make sure the converted test_parquet is not cached.
458457
assert(catalog.cachedDataSourceTables.getIfPresent(tableIdentifier) === null)

sql/hive/src/test/scala/org/apache/spark/sql/sources/BucketedWriteSuite.scala

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,7 @@ class BucketedWriteSuite extends QueryTest with SQLTestUtils with TestHiveSingle
8383
numBuckets: Int,
8484
bucketCols: Seq[String],
8585
sortCols: Seq[String] = Nil): Unit = {
86-
val files = dataDir.listFiles()
87-
if (files == null) {
88-
dataDir.isDirectory
89-
throw new NullPointerException(s"""
90-
|dataDir.listFiles() is NULL
91-
|== Directory(isDirectory=${dataDir.isDirectory} exists=${dataDir.exists}) ==
92-
|$dataDir
93-
|== Hive Warehouse(isDirectory=${hiveContext.warehousePath.isDirectory}) ==
94-
|${hiveContext.warehousePath}
95-
|== bucketed_table TableIdentifier ==
96-
|${sqlContext.sqlParser.parseTableIdentifier("bucketed_table")}""".stripMargin)
97-
}
98-
val allBucketFiles = files.filterNot(f =>
86+
val allBucketFiles = dataDir.listFiles().filterNot(f =>
9987
f.getName.startsWith(".") || f.getName.startsWith("_")
10088
)
10189

0 commit comments

Comments
 (0)