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
Next Next commit
fix test case
  • Loading branch information
gatorsmile committed Apr 17, 2017
commit 65b0ff76a2af83053e45948d1df60092fae118fd
Original file line number Diff line number Diff line change
Expand Up @@ -2297,21 +2297,23 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
}

test(s"basic DDL using locale tr - caseSensitive $caseSensitive") {
withLocale("tr") {
val dbName = "DaTaBaSeI"
withDatabase(dbName) {
sql(s"CREATE DATABASE $dbName")
sql(s"USE $dbName")

val tabName = "tAbI"
withTable(tabName) {
sql(s"CREATE TABLE $tabName(c1 int) USING PARQUET")
sql(s"INSERT OVERWRITE TABLE $tabName SELECT 1")
checkAnswer(sql(s"SELECT c1 FROM $tabName"), Row(1) :: Nil)
sql(s"DROP TABLE $tabName")
}
withSQLConf(SQLConf.CASE_SENSITIVE.key -> s"$caseSensitive") {
withLocale("tr") {
val dbName = "DaTaBaSeI"
withDatabase(dbName) {
sql(s"CREATE DATABASE $dbName")
sql(s"USE $dbName")

val tabName = "tAbI"
withTable(tabName) {
sql(s"CREATE TABLE $tabName(c1 int) USING PARQUET")
sql(s"INSERT OVERWRITE TABLE $tabName SELECT 1")
checkAnswer(sql(s"SELECT c1 FROM $tabName"), Row(1) :: Nil)
sql(s"DROP TABLE $tabName")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

}

sql(s"DROP DATABASE $dbName")
sql(s"DROP DATABASE $dbName")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this needed?

}
}
}
}
Expand Down