Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
incorporated code review comments
  • Loading branch information
jayadevanmurali authored Jan 19, 2017
commit ea6bd7d00c4d6ef5aea158a3fc8c3bfc5a0c02e4
18 changes: 6 additions & 12 deletions sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2514,17 +2514,11 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {
}
}

test(
"SPARK-19059: Unable to retrieve data from parquet table whose name startswith underscore") {
sql("CREATE TABLE `_tbl`(i INT) USING parquet")
sql("INSERT INTO `_tbl` VALUES (1), (2), (3)")
checkAnswer( sql("SELECT * FROM `_tbl`"), Row(1) :: Row(2) :: Row(3) :: Nil)
sql("ALTER TABLE `_tbl` RENAME TO `tbl`")
checkAnswer( sql("SELECT * FROM `tbl`"), Row(1) :: Row(2) :: Row(3) :: Nil)
sql("DROP TABLE `tbl`")
sql("CREATE TABLE `tbl`(i INT) USING parquet")
sql("INSERT INTO `tbl` VALUES (1), (2), (3)")
checkAnswer( sql("SELECT * FROM `tbl`"), Row(1) :: Row(2) :: Row(3) :: Nil)
sql("DROP TABLE `tbl`")
test("SPARK-19059: read file based table whose name starts with underscore") {
withTable("_tbl") {
sql("CREATE TABLE `_tbl`(i INT) USING parquet")
sql("INSERT INTO `_tbl` VALUES (1), (2), (3)")
checkAnswer( sql("SELECT * FROM `_tbl`"), Row(1) :: Row(2) :: Row(3) :: Nil)
}
}
}