File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1579,16 +1579,19 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
15791579 checkAnswer(sql(" SELECT val FROM tbl10562 WHERE Year > 2015" ), Nil )
15801580 checkAnswer(sql(" SELECT val FROM tbl10562 WHERE Year == 2012" ), Row (" a" ))
15811581 } finally {
1582+ // scalastyle:off println
15821583 Utils .classForName(" org.apache.derby.jdbc.EmbeddedDriver" )
15831584 val dir = new File (" ../../assembly/metastore_db" )
1585+ println(" connecting to: " + dir.getCanonicalPath)
15841586 val conn = DriverManager .getConnection(" jdbc:derby:" + dir.getCanonicalPath)
15851587 var query = conn.createStatement
15861588 var rs = query.executeQuery(" select * from partitions" )
1587- // scalastyle:off println
1589+ println( " metastore partition table contents: " )
15881590 while (rs.next()) {
15891591 println(rs.getString(1 ) + " " + rs.getString(2 ) + " " + rs.getString(3 ) + " " +
15901592 rs.getString(4 ) + " " + rs.getString(5 ) + " " + rs.getString(6 ))
15911593 }
1594+ println(" metastore partition key val contents:" )
15921595 query = conn.createStatement
15931596 rs = query.executeQuery(" select * from partition_key_vals" )
15941597 while (rs.next()) {
@@ -1598,11 +1601,7 @@ class SQLQuerySuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
15981601 }
15991602 }
16001603 }
1601- try {
1602- runOnce()
1603- } catch {
1604- case t : Throwable =>
1605- }
1604+ runOnce()
16061605 }
16071606
16081607 test(" SPARK-11453: append data to partitioned table" ) {
You can’t perform that action at this time.
0 commit comments